Elements – Th Tag

Th Tag

The <th> tag allows you to define a header cell in HTML tables. By default, most browsers will bold and center data in these tags.


<table> <tr> <th>Movie</th> <th>Rating</th> </tr> <tr> <td>Die Hard</td> <td>5 Stars</td> </tr> </table>

This markup will create the following output:

Die Hard5 Stars

More Information:


This article needs improvement. You can help improve this article. You can also write similar articles and help the community.