<th>标签scope属性设置某个表标题单元格是否是列、行、列组或行组的表头。scope属性在浏览器没有效果,但是在屏幕阅读器可呈现。
把两个表标题单元格规定为列的表头
<table border="1" > <tr> <th scope="col">教程课程</th> <th scope="col">学习天数</th> </tr> <tr> <td >php</td> <td >7天</td> </tr> <tr> <td>HTML</td> <td>6天</td> </tr> </table>





<th scope="值"></th>
| 值 | 描述 |
|---|---|
| col | 规定单元格是列的表头。 |
| row | 规定单元格是行的表头。 |
| colgroup | 规定单元格是列组的表头。 |
| rowgroup | 规定单元格是行组的表头。 |