tabindex Playground

The neighbourhood head calls the Tab queue numbers on your page: the browser answers each candidate’s tabIndex and focus(), find out when a positive tabindex…

Why it matters

A scrambled Tab order leaves keyboard and screen reader users lost. A positive tabindex (often added "so it gets focus first") does the damage. Knowing 0, -1 and positive apart = custom widgets people can reach and focus management done right.

The key idea

Only 0 and -1 are safe; a positive one always jumps ahead

Common mistakes

Try it in this playground