HTML tabindex- kenmerk


Voorbeeld

Links met een gespecificeerde tabvolgorde:

<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>

Definitie en gebruik

Het tabindexattribuut specificeert de tabvolgorde van een element (wanneer de "tab"-knop wordt gebruikt om te navigeren).

Het tabindexattribuut kan op elk HTML-element worden gebruikt (het valideert op elk HTML-element. Het is echter niet per se nuttig).


Browserondersteuning

Attribute
tabindex Yes Yes Yes Yes Yes

Syntaxis

<element tabindex="number">

Attribuutwaarden

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

Gerelateerde pagina's

HTML-zelfstudie: HTML-kenmerken

HTML DOM-referentie: HTML DOM tabIndex-eigenschap