HTML Global tabindex Attribute

❮ Previous Global Attributes Next ❯


<a href="" tabindex="1">Google</a>
<a href="" tabindex="2">Duckduckgo</a>


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


Attribute Values

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