Accessibility · Middle · Question 2 of 75

Which source usually wins when computing an element's accessible name?

Show the answer

Correct answer: aria-labelledby, then aria-label, then native labelling and content

Explanation

The computation has a defined order. aria-labelledby overrides everything, so a stale reference can silently replace a good visible label.

Further reading

Problem with a question

Accessibility · Middle · question 2

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