HTML tabindex- Attribut
Beispiel
Links mit einer bestimmten Tab-Reihenfolge:
<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>
Definition und Verwendung
Das tabindex
Attribut gibt die Tab-Reihenfolge eines Elements an (wenn die Schaltfläche "Tab" zum Navigieren verwendet wird).
Das tabindex
Attribut kann für jedes HTML-Element verwendet werden (es wird für jedes HTML-Element validiert. Es ist jedoch nicht unbedingt nützlich).
Browser-Unterstützung
Attribute | |||||
---|---|---|---|---|---|
tabindex | Yes | Yes | Yes | Yes | Yes |
Syntax
<element tabindex="number">
Attributwerte
Value | Description |
---|---|
number | Specifies the tabbing order of the element (1 is first) |
Verwandte Seiten
HTML-Tutorial: HTML-Attribute
HTML-DOM-Referenz: HTML-DOM tabIndex-Eigenschaft