Atributo tabindex HTML
Ejemplo
Enlaces con un orden de tabulación específico:
<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>
Definición y uso
El tabindex
atributo especifica el orden de tabulación de un elemento (cuando se utiliza el botón "tabulador" para navegar).
El tabindex
atributo se puede usar en cualquier elemento HTML (se validará en cualquier elemento HTML. Sin embargo, no es necesariamente útil).
Compatibilidad con navegador
Attribute | |||||
---|---|---|---|---|---|
tabindex | Yes | Yes | Yes | Yes | Yes |
Sintaxis
<element tabindex="number">
Valores de atributo
Value | Description |
---|---|
number | Specifies the tabbing order of the element (1 is first) |
páginas relacionadas
Tutorial HTML: Atributos HTML
Referencia de HTML DOM: propiedad HTML DOM tabIndex