码迷,mamicode.com
首页 > 数据库 > 详细

[HTML5] aria-label & aria-labelledby

时间:2018-03-12 23:01:55      阅读:443      评论:0      收藏:0      [点我收藏+]

标签:bin   element   com   otto   write   blog   ott   bat   body   

‘aria-labelledby‘ overwrite ‘aria-label‘ overwirte native element label.

 

TOP-LEFT: aria-label overwrite native element label, so it is Gumnut.

TOP-RIGHT: it has role button, so the label is Wombat.

BOTTOM-LEFT: No labe, because label need id to bind to the input field, so need to add id="roo"

BOTTOM-RIGHT: aria-labelledby overwrite aria-label, so it is "Wallaby"

技术分享图片

 

[HTML5] aria-label & aria-labelledby

标签:bin   element   com   otto   write   blog   ott   bat   body   

原文地址:https://www.cnblogs.com/Answer1215/p/8552257.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!