HTML thead tag

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 namePrice(in $)
Hard Disk20
Mouse6
RAM10
Total36

Resources and References

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

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.