QuizNot attempted
Naming a dialog
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
aria-labelledbypointing at the<h2>'s id
aria-labelledbyreuses the visible<h2>as the dialog's name, so it can never drift from what sighted users see- add
aria-describedbyfor the body text. - Not a hidden duplicate label: duplicate text drifts out of sync.
- Not title: unreliably announced and shows a hover tooltip.
- Not role=heading on the dialog: replaces the dialog role, it doesn't name it.