ARIA states and properties
The aria-* attributes that describe an element's current condition or relationships, such as aria-expanded="true" or aria-controls="panel-1".
In more detail
States change as the user interacts, so scripts must update them: an accordion button sets aria-expanded to true when its panel opens. Properties like aria-controls link a control to the element it affects.
Related terms
- ARIA — The W3C standard of HTML attributes, such as role and aria-expanded, that tell assistive technology what a custom widget is and what state it is in.
- ARIA role — The role attribute that tells assistive technology what kind of thing an element is, such as button, dialog, tab or switch.
- accordion — A vertical stack of headings that each expand or collapse a panel of content.
Taught in
- Accessibility Tree, ARIA Roles, States And Live Regions — Frontend Architecture & Web Platform