tabindex
Description
The tabindex attribute for HTML 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"
Value | Description |
---|---|
negative | no sequential focus |
omitted | user agent decides focus |
positive | sequential focus with order by number |
zero | sequential focus with order by placement |
Examples
1 · negative
2 · omitted
3 · positive
4 · zero
Links
Attributes
- abbr
- accept
- accept-charset
- accesskey
- action
- alt
- as
- async
- autocapitalize
- autocomplete
- autofocus
- autoplay
- blocking
- charset
- checked
- cite
- class
- color
- cols
- colspan
- contenteditable
- controls
- coords
- crossorigin
- data
- datetime
- decoding
- default
- defer
- dir
- dirname
- disabled
- download
- draggable
- enctype
- enterkeyhint
- exportparts
- fetchpriority
- for
- form
- formaction
- formenctype
- formmethod
- formnovalidate
- formtarget
- headers
- height
- hidden
- high
- href
- hreflang
- http-equiv
- id
- imagesizes
- imagesrcset
- inert
- inputmode
- integrity
- is
- ismap
- itemid
- itemprop
- itemref
- itemscope
- itemtype
- kind
- label
- lang
- list
- loading
- loop
- low
- max
- maxlength
- media
- method
- min
- minlength
- multiple
- muted
- name
- nomodule
- nonce
- novalidate
- onabort
- onafterprint
- onauxclick
- onbeforeinput
- onbeforeprint
- onbeforetoggle
- onbeforeunload
- onblur
- oncancel
- oncanplay
- oncanplaythrough
- onchange
- onclick
- oncontextlost
- oncontextmenu
- oncontextrestored
- oncopy
- oncut
- ondblclick
- ondrag
- ondragend
- ondragenter
- ondragleave
- ondragover
- ondragstart
- ondrop
- ondurationchange
- onended
- onfocus
- onformdata
- onhashchange
- oninput
- oninvalid
- onkeydown
- onkeypress
- onkeyup
- onlanguagechange
- onload
- onloadeddata
- onloadedmetadata
- onloadstart
- onmousedown
- onmouseenter
- onmouseleave
- onmousemove
- onmouseout
- onmouseover
- onmouseup
- onmousewheel
- onoffline
- ononline
- onpagehide
- onpageshow
- onpaste
- onpause
- onplay
- onplaying
- onprogress
- onratechange
- onreset
- onresize
- onscroll
- onscrollend
- onsearch
- onseeked
- onseeking
- onselect
- onstorage
- onsubmit
- onsuspend
- ontimeupdate
- ontoggle
- onunload
- onvolumechange
- onwaiting
- onwheel
- open
- optimum
- part
- pattern
- ping
- placeholder
- playsinline
- popover
- popovertarget
- popovertargetaction
- poster
- preload
- readonly
- referrerpolicy
- rel
- required
- reversed
- rows
- rowspan
- sandbox
- scope
- selected
- shape
- size
- sizes
- slot
- span
- spellcheck
- src
- srcdoc
- srclang
- srcset
- start
- step
- style
- target
- title
- translate
- type
- usemap
- value
- width
- wrap