[英]Does compliance to WCAG 2.0 AA use ul tab as navigation tabs in a master page?
I've got an aspx web application that uses an unordered list tags to parse a tab menu inside a master page. 我有一个aspx Web应用程序,该应用程序使用无序列表标签来解析母版页中的选项卡菜单。 My question is: is it ok to use an ul tag according to WCAG 2.0 AA?
我的问题是:可以根据WCAG 2.0 AA使用ul标签吗?
<div id="divTabsId">
<ul>
<li class="home" id="elementId">
<a href="xxx.aspx">
Start</a>
</li>
<li>
<a id="elementId2" href="zz.aspx">
T1</a>
</li>
<li>
<a href="yyy.aspx">
Help</a>
</li>
</ul>
</div>
There is nothing wrong with using ul tag. 使用ul标签没有错。 But adding the appropriate aria tags in addition to it would be useful, such as role="menu" to the ul.
但是,除了添加适当的aria标签外,它也很有用,例如ul的role =“ menu”。
Please see W3 recommendation here: https://www.w3.org/WAI/GL/wiki/Using_ARIA_menus 请在此处查看W3建议: https : //www.w3.org/WAI/GL/wiki/Using_ARIA_menus
Depending on your requirement you could read up these roles: 根据您的要求,您可以阅读以下角色:
role="menu"
: https://www.w3.org/TR/wai-aria/roles#menu role="menu"
: https : //www.w3.org/TR/wai-aria/roles#menu
role="menu-item"
: https://www.w3.org/TR/wai-aria/roles#menuitem role="menu-item"
: https : //www.w3.org/TR/wai-aria/roles#menuitem
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.