th Tag for Table Heading

th Tag for Table Heading

Heading for a table can be defined using <th> tag. It replaces the <td> tag in the top row of the table which is usually used to represent table heading. It can also be used else where in the table for emphasis.

HTML code

<table border=”1″>

<tr>

<th>Heading 1</th>

<th>Heading 2</th>

</tr>

<tr>

<td>Cell 1</td>

<td>Cell 2</td>

</tr>

</table>

Browser output

The th Tag for Table Heading

Share this post
[social_warfare]
td Tag for Table Cells
Table Cellpadding and Cellspacing

Get industry recognized certification – Contact us

keyboard_arrow_up