disabled attribute
The HTML attribute that turns off a form control, blocking clicks and removing it from the keyboard tab order.
In more detail
Because a disabled control cannot be focused, screen reader users moving by Tab may never learn it exists or why it is unavailable. aria-disabled="true" is the alternative when the control should stay discoverable.
Related terms
- aria-disabled — An ARIA state that tells assistive technology a control is unavailable while leaving it focusable.
- tab order — The sequence in which elements receive focus when the user presses Tab (forward) or Shift+Tab (backward).
- form control — An element that collects user input, such as a text input, checkbox, switch, select or button.
Taught in
- Actionable Form Primitives: Buttons, Switches & Inputs — Design Systems & Component Engineering
- Navigation & Disclosure: Dropdown Menus, Tabs & Accordions — Design Systems & Component Engineering
- Storybook & Component Driven Development Workflows — Design Systems & Component Engineering