QuizNot attempted
First rule of ARIA
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
<button type="button">
- First rule of ARIA: use the native element.
<button type="button">brings focus, Enter/Space activation, the button role and disabled state for free.- Not div role=button tabindex=0 + key handlers: it works, but you rebuild everything by hand and miss details (disabled, form behaviour).
- Not div onclick: not focusable, no role, mouse-only.
- Not a href=#: a link means navigation, activates only on Enter, and jumps to the top unless prevented.