QuizNot attempted
Linking a hint to an input
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
aria-describedby="hint-id"on the input
aria-describedbyon the input points at the hint, so screen readers announce it as the input's description after its name.- Not aria-label on the hint: that names the hint element, it doesn't connect it to the input.
- Not aria-controls: means 'this element controls that one' (accordion button to panel), not 'describes'.
- Not hidden in the label:
display: nonecontent is removed from the accessibility tree, so it isn't read.