Accessibility · Middle · Question 5 of 75

What is wrong here?

<div aria-label="Order status">Shipped</div>
Show the answer

Correct answer: aria-label on a generic div with no role is not reliably exposed

Explanation

Naming is prohibited on the generic role, so assistive tech may ignore it. Give the element a suitable role or use real text.

Further reading

Problem with a question

Accessibility · Middle · question 5

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