Tabindex
The tabindex attribute is an HTML global attribute that controls whether an element can receive keyboard focus and, when applicable, its position in sequential focus navigation.
Architecting Accessibility
An HTML global attribute that controls an element’s keyboard focusability and position in sequential focus navigation.
- How it is used
- Controls keyboard focus participation in custom components and helps preserve usable sequential navigation.
- How deep it goes
- Defines tab-order effects and works through tab selection and programmatic focus, without treating the attribute as a substitute for keyboard behavior.
- Examples
- Uses a tabbed interface, a programmatically focused modal heading, and a visually reordered navigation header.
- What you can do after
- Apply it via HTML and JavaScript to manage tab stops while checking focus visibility and logical navigation order.
D3.js in Action, Third Edition
The tabindex attribute controls whether an HTML or SVG element can receive keyboard focus and its position in sequential focus navigation.
- How it is used
- Makes interactive SVG shapes reachable by keyboard users and preserves tooltip access without mouse interaction.
- How deep it goes
- Defines integer-based focus order and demonstrates dynamic SVG updates, focus, blur, sorting, and repeated bindings.
- Examples
- Uses a filtered cetacean scatterplot whose circles reveal tooltips through pointer entry or keyboard focus.
- What you can do after
- Apply tabindex, focus, and blur handlers to make dynamic SVG visualization interactions keyboard-accessible.
Also covered in
- Vanilla WebIn early access (MEAP)
- The Well-Grounded Python Developer: How the pros use Python and Flask
What to know first
- CSSCSS (Cascading Style Sheets) is a stylesheet language for specifying the presentation and layout of structured documents.
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
Related concepts
- focus managementconfigures · Focus management is the deliberate control, movement, placement, and restoration of keyboard focus among interactive user-interface elements.
- focusable elementconfigures · A focusable element is an interface element that can receive keyboard or programmatic input focus.
- focus orderconfigures · Focus order is the sequence in which interface elements receive keyboard focus during sequential navigation.
Questions about tabindex
What is tabindex?
The tabindex attribute is an HTML global attribute that controls whether an element can receive keyboard focus and, when applicable, its position in sequential focus navigation.
Which Manning books explain tabindex?
Architecting Accessibility and D3.js in Action, Third Edition.
What should I know before learning tabindex?
Manning books that teach tabindex usually introduce CSS and JavaScript first.
What is tabindex part of?
Tabindex is part of render_kw. render_kw is a field parameter containing HTML attributes to apply when the field is rendered.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

