tabindex
noun
say it: “TAB in-deks” /ˈtæb ˌɪndɛks/
An HTML attribute that says whether an element can take keyboard focus. tabindex="0" adds it to the Tab order, and tabindex="-1" lets only a script or a link focus it.
What is tabindex?
tabindex — A global attribute that controls whether and where an element participates in sequential focus navigation.
In a sentence
- “I put tabindex="-1" on the main area so the skip link could move focus there.”
- “Setting tabindex to 5 made the button jump ahead of everything else, so I set it back to 0.”
Level: Journeyman · More HTML terms at this level
Updated