Accessibility · Middle · Question 6 of 75
Why is <nav role="navigation"> unnecessary?
- 1
roleisn't valid on landmark elements - 2It makes the element unreachable by Tab
- 3
<nav>already has that implicit role
Show the answer
Correct answer: <nav> already has that implicit role
Explanation
Native elements have implicit roles, so repeating them adds noise. html-aria lists which roles are allowed on each element.