tabindex

The tabindex HTML attribute allows authors to indicate that an element is supposed to be focusable, whether it is supposed to be reachable using sequential focus navigation and, optionally, to suggest where in the sequential focus navigation order the element appears.

Syntax

tabindex="value"
ValueDescription
negativeno sequential focus
omitteduser agent decides focus
positivesequential focus with order by number
zerosequential focus with order by placement

Examples

1 · negative

2 · omitted

3 · positive

4 · zero

accesskey

autocapitalize

class

contenteditable

data

dir

draggable

hidden

id

inputmode

is

lang

spellcheck

style

title

Web Hypertext Application Technology Working Group (WHATWG)

HomeMenu