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
td tag for Table Cells
Table Cellpadding and Cellspacing

Get industry recognized certification – Contact us

keyboard_arrow_up
Open chat
Need help?
Hello 👋
Can we help you?