What is aria-expanded?

The aria-expanded attribute indicates whether an element controlling a collapsible panel (accordion, dropdown menu, sub-navigation) is currently open (true) or closed (false). It allows screen reader users to know the component's state without needing to perceive it visually. The value must be dynamically updated via JavaScript on each state change.

Related terms

Test your website’s accessibility

106 RGAA criteria analyzed in 5 minutes by our AI.

Run a free audit on scrutia.io