Name
TABINDEX — NN n/a IE n/a HTML 4
Synopsis
TABINDEX=integer
Optional
A number that indicates the sequence of this element within the
tabbing order of all focusable elements in the document. Tabbing
order follows a strict set of rules. Elements that have values other
than zero assigned to their TABINDEX attributes
are first in line when a user starts tabbing in a page. Focus starts
with the element with the lowest TABINDEX value
and proceeds in order to the highest value, regardless of physical
location on the page or in the document. If two elements have the
same TABINDEX values, the element that comes
earlier in the document receives focus first. Next come all elements
that either don’t support the TABINDEX
attribute or have the value set to zero. These elements receive focus
in the order in which they appear in the document.
Although this attribute is not yet implemented in browsers, the
expected behavior is that when a LABEL element
receives focus, the focus shifts automatically to the associated
INPUT element.
Example
<LABEL FOR="stateEntry" TABINDEX=3>State:</LABEL>
Value
Any integer from 0 through 32767.
Default
None.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access