Skip to content

Find what you need, instantly

Search components, ARIA roles & attributes, and WCAG criteria.

All attributes

aria-pressed

Tristate

Indicates whether a toggle button is currently pressed (on) or not (off), turning a plain button into a two-state control. Values are true, false, or mixed for a partially pressed state. Use it only on buttons whose pressed state persists; for a control that turns a setting on or off, role='switch' is often clearer.

Values
true
The toggle button is pressed.
false
The toggle button is not pressed.
mixed
The button is partially pressed (rarely used).
undefined (default)
The button is not a toggle button.
Used on
<button>
Associated roles
Example
aria-pressed="…"
<button aria-pressed="true">Mute</button>