Atrybut tabindex HTML


Definicja i użycie

tabindexAtrybut określa kolejność tabulacji elementu (gdy przycisk „tab” jest używany do nawigacji) .


Dotyczy

Atrybut jest tabindexczęścią Global Attributes i może być używany w dowolnym elemencie HTML.

Element Atrybut
Wszystkie elementy HTML tabindex

Przykład

Elementy o określonej kolejności tabulatorów:

<div tabindex="1">W3Schools</div>
<div tabindex="3">Google</div>
<div tabindex="2">Microsoft</div>

Obsługa przeglądarki

Attribute
tabindex Yes Yes Yes Yes Yes