Skip to content

QuizNot attempted

Linking a hint to an input

An input has helper text below it ("At least 8 characters"). How do you make screen readers announce it with the input?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • aria-describedby="hint-id" on the input
  • aria-describedby on 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: none content is removed from the accessibility tree, so it isn't read.