HTML - Table Headers & Captions
Overview
Estimated time: 15–25 minutes
Example
<table>
<caption>Sales</caption>
<thead>
<tr><th scope="col">Quarter</th><th scope="col">Revenue</th></tr>
</thead>
<tbody>
<tr><th scope="row">Q1</th><td>$10k</td></tr>
</tbody>
</table>
Common Pitfalls
- Using th without scope or appropriate headers.