Say you’ve got an HTML table, with a th
cell that spans several columns, e.g.
<table>
<tr>
<th colspan="3" scope="?">Scores</th>
</tr>
<tr>
<th scope="col">English</th>
<th scope="col">Maths</th>
<th scope="col">Science</th>
</tr>
<tr>
<td>12</td>
<td>16</td>
<td>20</td>
</tr>
</table>
What’s the correct value for the scope attribute for the spanning header cell? col
seems incorrect as it’s heading several columns, but colgroup
does’t seem right if I don’t actually have any colgroup
tags.