It is true that most modern browsers/technologies recognise the HTML5 element as navigation and give it the same attention. But explicitly setting the role="navigation" attribute just makes sure that a lot more technologies can pick it up.
For example screen-readers and other technologies for users with disabilities are very rarely fully standards compliant (especially if they have to work all the way back to IE6 or lower!) so adding the role attributes explicitly always ensures that you cover all your bases for the most users possible.
Also (and this is just a guess) some of the lesser known search engines may not fully recognise HTML5 yet, so adding these roles should help with the sites crawl-ability.
最后
以上就是干净翅膀最近收集整理的关于html的标签nav的role,html - nav role=navigation - Stack Overflow的全部内容,更多相关html的标签nav的role,html内容请搜索靠谱客的其他文章。
发表评论 取消回复