<thead>...</thead>
HTML4 HTML5
Defines table header section[cite: 3]. Mandatory opening, optional closing[cite: 3].
Attributes:
align, char, charoff, valign - Not in HTML5[cite: 3].
Example
Code:
<table>
<thead style="color: yellow;">
<tr>
<th>Year</th>
<th>Income</th>
</tr>
</thead>
<tbody>
<tr>
<td>2000</td>
<td>$25,000</td>
</tr>
<tr>
<td>2010</td>
<td>$69,000</td>
</tr>
</tbody>
<tfoot style="font-weight: bold; color: blue;">
<tr>
<td>Total</td>
<td>$94,000</td>
</tr>
</tfoot>
</table>
The browser will interpret this code as follows:
| Year | Income |
| 2000 |
$25,000 |
| 2010 |
$69,000 |
| Total |
$94,000 |