3

So I ran one of my pages source code through a 508 compliance checker online, and it came back saying some of my tables are not correct, I followed the guidelines to use the scope setting but it still fails:

<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>

Thanks.

4

3 回答 3

4

你需要添加表头<th>

于 2010-01-13T22:05:21.447 回答
2

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

于 2010-01-13T22:08:06.523 回答
1

另外我不知道那个内联 onmouseover 是否会飞。为了便于访问,当用户通过选项卡浏览文档选择行时,它需要执行等效的操作——如果不进行一些调整,这将无法正常工作。即使您不使用鼠标,您也需要一些提示来突出显示该行。

于 2011-05-28T03:11:38.117 回答