HTML tabindex Atribut


Příklad

Odkazy se zadaným pořadím karet:

<a href="https://www.w3schools.com/" tabindex="2">W3Schools</a>
<a href="http://www.google.com/" tabindex="1">Google</a>
<a href="http://www.microsoft.com/" tabindex="3">Microsoft</a>

Definice a použití

Atribut tabindexurčuje pořadí tabulátorů prvku (když se k navigaci používá tlačítko „tabulátor“).

Atribut tabindexlze použít na jakýkoli prvek HTML (ověřuje se na jakémkoli prvku HTML. Není však nutně užitečný).


Podpora prohlížeče

Attribute
tabindex Yes Yes Yes Yes Yes

Syntax

<element tabindex="number">

Hodnoty atributů

Value Description
number Specifies the tabbing order of the element (1 is first)

Související stránky

HTML kurz: HTML atributy

HTML DOM Reference: HTML DOM tabIndex Property