Accessibility · Junior · Question 23 of 75
What does tabindex="-1" do?
- 1Allows focus from script but skips it when tabbing
- 2Disables the element for all users completely
- 3Puts the element last in the Tab order
Show the answer
Correct answer: Allows focus from script but skips it when tabbing
Explanation
It's useful for moving focus programmatically, for example to a dialog or an error summary, without adding a Tab stop.