Question · HTML and CSS course · Module 10: Accessibility (a11y)
ARIA Roles vs Semantic Elements
What is the difference between role="navigation" and the <nav> element?
Answer options
- There is no difference, both are identical
- <nav> is not recognized by screen readers
- <nav> has a built-in navigation role, so role="navigation" is redundant on <nav>
- role="navigation" has higher priority than <nav>
You can check the correct answer by solving this task in the CodeWorlds game.