Accessibility · Middle · Question 2 of 75
Which source usually wins when computing an element's accessible name?
- 1
aria-labelledby, thenaria-label, then native labelling and content - 2The
nameattribute, then the element's CSScontent, thenalt - 3The
titleattribute, thenplaceholder, then theidof the element
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.