Accessibility · Junior · Question 22 of 75

What does tabindex="0" do?

Show the answer

Correct answer: Adds an element to the Tab order in DOM position

Explanation

It's for custom widgets that must receive focus. Prefer native elements, which don't need it.

Further reading

Problem with a question

Accessibility · Junior · question 22

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