我是靠谱客的博主 干净翅膀,最近开发中收集的这篇文章主要介绍html的标签nav的role,html - nav role=navigation - Stack Overflow,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

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 - nav role=navigation - Stack Overflow所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(50)

评论列表共有 0 条评论

立即
投稿
返回
顶部