Accessibility · Middle · Question 6 of 75

Why is <nav role="navigation"> unnecessary?

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.

Further reading

Problem with a question

Accessibility · Middle · question 6

Test yourself

Take the Accessibility · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz