HTML Tag: thead
A row group consisting of column headers of a table.
thead
elements are children of table
elements. If used, there should only be one thead
per table
element and it should only ever appear after caption
and colgroup
elements, if either of these elements are used.
Optional Attributes
Example
<table>
<thead>
<tr>
<th>Header 1</th>
<th>Header 2</th>
<th>Header 3</th>
</tr>
</thead>
<tfoot>
<tr>
<td>Footer 1</td>
<td>Footer 2</td>
<td>Footer 3</td>
</tr>
</tfoot>
<tbody>
<tr>
<td>Cell data 1</td>
<td>Cell data 2</td>
<td>Cell data 3</td>
</tr>
<tr>
<td>Cell data 4</td>
<td>Cell data 5</td>
<td>Cell data 6</td>
</tr>
<tr>
<td>Cell data 7</td>
<td>Cell data 8</td>
<td>Cell data 9</td>
</tr>
</tbody>
</table>