th Tag for Table Heading

Certify and Increase Opportunity.
Be
Govt. Certified HTML5 Developer

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

Get industry recognized certification – Contact us

Menu