Specifies the tabbing order for keyboard navigation using the TAB key.
The default tabbing order matches the source order in the markup, with tabIndex you can change this order. The browser will tab to the elements in ascending order.
The another effect of the tabIndex attribute is that if it is specififed, the element can be active (can have focus). Most of the HTML elements cannot be active by default (div, span, ...), but if the tabIndex attribute is set on them, they can be active.
Integer that sets the position of the element in the tabbing hierarchy. Default: 0. If the value is a negative number, the element will be removed from the tabbing hierarchy.
Example HTML code 1:
This example illustrates the use of the tabIndex attribute: