2010-01-13 26 views
3

所以我跑我的一个网页的源代码,通过508合规性检查网上,并且它回来的人都说我的一些表是不正确的,我遵循的准则使用范围设置,但它仍然失败:为什么这个HTML表格不符合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> 

谢谢。

回答

4

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

+0

做标签具有所有相同的属性,可以在td的使用,即我可以只修改标题我已经在 user105033

+0

是的,你可以这样做 – jspcal

2

你需要添加,摘要,标题,THEAD,日,TFOOT,TBODY

+0

没有想到总结,标题,tfoot,thead,tbody是强制性的遵守,只是推荐 – user105033

1

此外,我不知道是否内嵌会的onmouseover飞。为了可访问,当用户在文档中选择行时,需要执行相应的操作 - 如果不进行一些调整,该行就会不起作用。即使您不使用鼠标,也需要提示该行突出显示。