🚀 LEVEL UP TO SENIOR:Unlock 500+ Advanced Practical Challenges & Expert Masterclasses.
🎓 COURSERA PARTNER:Earn professional Google, Meta, and IBM certificates to supercharge your resume.
REFERENCEhtml

html Documentation

LOADING ENGINE...

HTML <thead> Tag

Table header section. thead, tbody, th.

thead.html
<thead><tr><th>Name</th></tr></thead>
📋
thead.html
1 / 7
📋

Tutor:The <thead> tag groups header rows in a table. It goes inside <table>. Contains one or more <tr> with <th> cells (or <td>). Use thead for semantic structure; browsers and screen readers use it.


Thead Mastery

Table header section: thead, tbody, th.

Concept 1: The Thead Tag

The <thead> tag groups header rows in a table. It goes inside <table>. Contains one or more <tr> with <th> cells. Use thead for semantic structure.

System Check

Which element groups the header rows of a table?


Community Holo-Net

Table Structure Patterns

Using thead, tbody, th? Share your patterns.

Enjoying this guide?

Codesyllabus is 100% free and open-source. Support our mission, pay for server infrastructure, and fuel new tutorials by buying us a coffee!

HTML <thead> Tag

Author

Pascual Vila

Frontend Instructor.

The <thead> tag groups header rows in a table. It goes inside <table>. Contains one or more <tr> with <th> cells (or <td>). Use thead for semantic structure; browsers and screen readers use it to identify the header section.

Structure

Order: <caption>, <thead>, <tbody>, <tfoot>. One thead per table. Use <th> with scope="col" or scope="row" inside thead for accessibility.

Best practices

Always use thead when the table has header rows. Pair with tbody (and optionally tfoot). Add <caption> for table title. Use scope on <th> for screen readers.

Thead Tag Glossary

<thead>
Table header section. Groups header rows. Contains <tr> with <th> (or <td>). One thead per table.
thead / tbody / tfoot
thead = header rows, tbody = body rows, tfoot = footer rows. Semantic structure for tables. Improves accessibility.
Order
Caption, thead, tbody, tfoot. Use <th> with scope inside thead for column/row headers.