Accessibility · Junior · Question 23 of 75

What does tabindex="-1" do?

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.

Further reading

Problem with a question

Accessibility · Junior · question 23

Test yourself

Take the Accessibility · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz