Accessibility · Middle · Question 8 of 75
Two <nav> elements on one page: what should you do?
- 1Give each a distinct name with
aria-label - 2Add
role="main"to the second navigation - 3Keep only one and turn the other into a
div
Show the answer
Correct answer: Give each a distinct name with aria-label
Explanation
Screen readers list landmarks, so "Main navigation" and "Footer links" are useful, while two entries called "navigation" are not.