为什么这个HTML表不符合508?

时间:2010-01-13 22:00:27

标签: html section508

所以我通过508合规检查器在线运行了我的一个页面源代码,并且它回来说我的一些表格不正确,我按照指南使用范围设置但仍然失败:

<table>

    <tr bgcolor="#f6f7f7">
        <td scope="col">adsf</td>
        <td scope="col">Type</td>
        <td scope="col">&nbsp;Check ID</td>
        <td scope="col">&nbsp;Check Title</td>
    </tr>

    <tr bgcolor="#EEEEEE" onMouseOver="javascript: this.style.backgroundColor='#FFF8DC';" onMouseOut="javascript:this.style.backgroundColor='#EEEEEE';">
        <td scope="row" id="statuscell0">aad</td>
        <td align="center" id="statuscell0">OVAL</td>
        <td align="left" id="statuscell0">asdfasdf</td>
        <td align="left" id="statuscell0">asdfasdf</td>
    </tr>
    <!-- More such table rows here ... //-->
</table>

感谢。

3 个答案:

答案 0 :(得分:4)

您需要添加表格标题<th>

答案 1 :(得分:2)

你需要添加,摘要,标题,thead,th,tfoot,tbody

答案 2 :(得分:1)

此外,我不知道内联onmouseover是否会飞。为了便于访问,当用户通过文档选择行来选择行时,它将需要执行相同的操作 - 这不会在没有一些调整的情况下工作。您需要一些提示,即使您没有使用鼠标,该行也会突出显示。