HTML thead tag

Last Updated on April 26, 2023 by Roshan Parihar

Learn how to use the HTML thead tag in a table to create a heading row. It makes the top row of the table bold or increases the font-weight of the text. It is used in tables to show header.

You have to include an HTML <th> tag also to add text for table header.

Syntax:

A table rows comes in this tag to show header rows. Header cells in table is given by HTML th tag.

Example

Output

Computer parts with its price:

Parts name Price(in $)
Hard Disk 20
Mouse 6
RAM 10
Total 36

Resources and References

1. W3C Specification.
2. HTML living standard
3. W3C project using Github