Accessible Accordions and Disclosure: What Actually Works
Expandable sections that hide and reveal content, used for FAQs and long pages.
On this page
Where most projects go wrong
The usual mistakes:
- Div elements as triggers
- Content hidden visually but exposed to screen readers
- Missing state attributes
- Accordions used for essential short content
What good looks like instead
- Use buttons with aria-expanded for triggers
- Wrap triggers in appropriate heading levels
- Hide collapsed content from assistive technology
- Support keyboard activation
- Keep icons decorative and hidden
Why it matters
Accordions are simple to build badly, and incorrect markup leaves screen reader users unable to tell what is open.
The specs that matter
| Measure | Figure |
|---|---|
| Buttons | the trigger should be a button |
| State | aria-expanded communicates open and closed |
| Headings | accordion triggers often sit inside headings |
| Content | hidden content must be hidden from assistive technology too |
Knowing when to hand it over
Tip: Bring in help when FAQ sections must be accessible.
Where this comes from
- W3C ARIA Authoring Practices Guide — Accordion pattern
- MDN Web Docs — aria-expanded
The figures and practices above come from the sources listed.
Working on something like this?
We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.