HTML Global tabindex Attribute

❮ Previous Global Attributes Next ❯

Example

<a href="http://www.google.com/" tabindex="1">Google</a>
<a href="http://www.duckduckgo.com/" tabindex="2">Duckduckgo</a>

Meaning

The tabindex attribute uses a number to identify the object’s position in the tabbing order for keyboard navigation using the TAB key.

The attribute should be set to a numeric value. User agents will generally move through fields with tabindex set in increasing numeric order, skipping any elements with 0 or a negative value.

After moving over all tabindex values, any 0 valued fields will be navigated in order, but negative values will continue to be skipped. Nonnumeric values will generally result in the browser applying its normal focusing algorithm.

Note: If the value is negative, the element will be excluded from the tabbing navigation.




Standard Syntax

<element tabindex="number">



Browser Support




Status







Attribute Values

Value Description
number Specifies the tabbing order of the element (1 is first)
❮ Previous Global Attributes Next ❯