html - nav role=navigation -
im little confused roles. if have in page navigation enclosed in nav
tag , specify role="navigation"
.
<nav role="navigation"> ... </nav>
isn't semantically explicit nav
section navigation?
or if have other navigation sections on page, , specify role 1 of them, section become of import on page? , without role="navigation"
boring navigations?
it true modern browsers/technologies recognise html5 <nav>
element navigation , give same attention. explicitly setting role="navigation"
attribute makes sure lot more technologies can pick up.
for illustration screen-readers , other technologies users disabilities standards compliant (especially if have work way ie6 or lower!) adding role attributes explicitly ensures cover bases users possible.
also (and guess) of lesser known search engines may not recognise html5 yet, adding these roles should help sites crawl-ability.
html html5 semantic-markup
No comments:
Post a Comment