<th>
たとえば、複数の列にまたがるセルを持つHTMLテーブルがあるとします。
<table>
<tr>
<th colspan="3" scope="?">Scores</th>
<!-- ...more headings here... -->
</tr>
<tr>
<th scope="col">English</th>
<th scope="col">Maths</th>
<th scope="col">Science</th>
<!-- ...more sub-headings here... -->
</tr>
<tr>
<td>12</td>
<td>16</td>
<td>20</td>
<!-- ...more cells here... -->
</tr>
</table>
スパニングヘッダーセルのスコープ属性の正しい値は何ですか?col
いくつかの列の見出しであるため正しくないように見えますが、実際にタグcolgroup
がない場合は正しくないようです。colgroup