HTML <thead> Tag
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.
