format_align_center
The <th> Element
check_circle
Defines header cells in an HTML table
check_circle
Text is bold and centered by default
check_circle
Replaces <td> for header content
<table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Country</th>
</tr>
<tr>
<td>John</td>
<td>25</td>
<td>USA</td>
</tr>
</table>
<tr>
<th>Name</th>
<th>Age</th>
<th>Country</th>
</tr>
<tr>
<td>John</td>
<td>25</td>
<td>USA</td>
</tr>
</table>
accessibility
Headers provide semantic meaning and improve accessibility for screen readers
table_chart
Table with Headers Example
| Name | Age | Country |
|---|---|---|
| John | 25 | USA |
| Maria | 30 | Spain |
| Li | 28 | China |
accessibility_new
Accessibility Benefits
volume_up
Screen readers announce headers properly
touch_app
Better navigation for keyboard users
search
Improved SEO with semantic structure