tutorialpro.org tutorialpro.org
Google
tutorialpro.org tutorialpro.org
Google
Easy Tutorial
❮ Att Area Href Att Input Pattern ❯

HTML tabindex Attribute

HTML Global Attributes

Example

A link with a specified tab navigation order:

<a href="//www.tutorialpro.org//" tabindex="2"> tutorialpro.org tutorialpro.org</a><br />
<a href="//www.google.com/" tabindex="1">Google</a><br />
<a href="//www.microsoft.com/" tabindex="3">Microsoft</a>

Browser Support

All major browsers support the tabindex attribute.


Definition and Usage

The tabindex attribute specifies the order of elements when using the "tab" key for navigation.


Differences Between HTML 4.01 and HTML5

In HTML5, the tabindex attribute can be used on any HTML element (it will validate on any HTML element, but may not always be useful).

In HTML 4.01, the tabindex attribute can be used on: <a>, <area>, <button>, <input>, <object>, <select>, and <textarea>.


Syntax

Attribute Values

Value Description
number Specifies the tab order of the element (1 being the first).

❮ Att Area Href Att Input Pattern ❯