QuizNot attempted
tabindex values
1–4 to choose, Enter to submit
Show answer & explanation
Correct answer:
tabindex="0"adds a custom control to the natural Tab order;tabindex="-1"makes it focusable only from script
tabindex="0"puts a custom control into the natural Tab order (DOM order), and-1makes it focusable only via.focus()(dialogs, roving tabindex, skip-link targets).- Not tabindex=5: positive values create a separate, fragile order that jumps ahead of everything
- fix the DOM order instead.
- Not '-1 removes from the a11y tree': it only removes it from Tab order
aria-hiddenremoves from the tree.- Not 'buttons need 0': native buttons, links and inputs are already focusable.