Accordions
Collapsed sections shorten a page, but people skip what is hidden and cannot compare two sections side by side.
The answer
Collapse only content most people do not need, and let several sections stay open at once. As strong as the weakest rule behind it: moderate.
-
Don’t hide what most people need in a collapsed section.
GOV.UK and NN/g agree. One site's own logs show 61% of mobile sessions with collapsed sections opened none. A lab study (n=48) found more skipping with titles-only collapsed sections. Neither shows worse outcomes, so 3 on practitioner agreement.
- Applies when
- Deciding whether to collapse content.
- Based on
- Practitioner research
- From research on
- Recognition is more accurate than recall
- Principle
- Recognition over recall
- Common mistake
- Hiding the main content of a page in closed sections.
- ExperimentsExperiment: Compare usage of collapsed and uncollapsed section view on mobile web (Phabricator task)Tilman Bayer, 2016
- Experiment: Designing for Understanding: How Interface-Level Consent Designs Shape Attention and Understanding in Privacy DisclosuresXiao, 2026
- GuidanceGuidance: Accordion component (GOV.UK Design System)GOV.UK Design System team, 2025
- Guidance: Accordions on desktopHuei-Hsin Wang, 2023
-
Let several sections stay open at once. Don’t close one when another opens.
NN/g says auto-collapsing blocks comparison; GOV.UK's component allows several open. APG permits either mode and offers no evidence.
- Applies when
- People may need to compare or refer across sections.
- Based on
- Practitioner research
- Depends on
- What the person is trying to do
- Principle
- Keep people in control
- GuidanceGuidance: Accordions on desktopHuei-Hsin Wang, 2023
- Guidance: Accordion component (GOV.UK Design System)GOV.UK Design System team, 2025
- Guidance: Accordion Pattern (ARIA Authoring Practices Guide)W3C WAI APG, 2026
The other rules
-
Use an accordion when sections stand alone and people need only one or a few.
NN/g and GOV.UK agree; no data.
- Applies when
- Content splits into self-contained sections.
- Based on
- Practitioner research
- Principle
- Let practiced people go faster
- GuidanceGuidance: Accordions on desktopHuei-Hsin Wang, 2023
- Guidance: Accordion component (GOV.UK Design System)GOV.UK Design System team, 2025
-
Make each section heading a button that says whether it’s open, works with Enter and Space, and sits in the normal tab order.
ARIA practices guide, non-binding. That the open or closed state is exposed is required by WCAG 4.1.2 (A); the heading-and-button structure is the guide's.
- Applies when
- Any accordion.
- Based on
- Standard or law
- Principle
- Work for everyone
- StandardStandard: Understanding SC 4.1.2 Name, Role, ValueW3C WAI, 2026
- GuidanceGuidance: Accordion Pattern (ARIA Authoring Practices Guide)W3C WAI APG, 2026
- Guidance: Accordion component (GOV.UK Design System)GOV.UK Design System team, 2025
-
Don’t spread a form’s fields across sections people can collapse.
Baymard reports users could not tell which fields would be submitted; GOV.UK says not to use accordions for a series of questions. A small test (n=24) found a step-by-step accordion with continue buttons worked, which is a different design. See Single page vs multi-step.
- Applies when
- An accordion would hold input fields.
- Based on
- Practitioner research
- Principle
- Prevent errors
- ExperimentExperiment: Testing Accordion FormsLuke Wroblewski, 2010
- User researchUser research: Accordion UX - pitfalls of inline accordion and tab designs (forms)Jamie Holst, 2014
- GuidanceGuidance: Accordion component (GOV.UK Design System)GOV.UK Design System team, 2025
-
Where there’s room, show a short preview of each collapsed section. In one study it helped people follow the content.
One exploratory lab study (48 students, one privacy policy). Comprehension did not differ across layouts.
- Applies when
- Sections are collapsed by default.
- Based on
- Research
- Principle
- Recognition over recall
- ExperimentExperiment: Designing for Understanding: How Interface-Level Consent Designs Shape Attention and Understanding in Privacy DisclosuresXiao, 2026
-
Don’t put accordions inside accordions.
GOV.UK advises against it because it makes content hard to find. No research is cited.
- Applies when
- Always.
- Based on
- Practitioner research
- GuidanceGuidance: AccordionGOV.UK Design System
-
Don’t use a long summary as the section button.
Long button text is hard to navigate for screen reader users. GOV.UK guidance, with no research cited.
- Applies when
- Always.
- Based on
- Practitioner research
- GuidanceGuidance: AccordionGOV.UK Design System
-
With more than a few sections, offer Open all, and print with all sections open.
NN/g recommends it, partly for printing. GOV.UK's guidance does not mention one. No test found.
- Applies when
- An accordion has many sections.
- Based on
- Practitioner research
- Depends on
- Number of items
- Principle
- Keep people in control
- GuidanceGuidance: Accordions on desktopHuei-Hsin Wang, 2023
- Guidance: Accordion component (GOV.UK Design System)GOV.UK Design System team, 2025
Accessibility
- WCAG 2.2 · 4.1.2WCAG 4.1.2 (A): expanded state exposed.
- People who navigate by a list of headings may not realize the headings are buttons (GOV.UK).
- Without scripts, show all content under its headings.
Open questions
- OpenDo collapsed sections hurt understanding? One small study says no difference, though people skipped more and liked it more.
- OpenEffect on in-page search and printing: no research found.
Sources
- ExperimentsExperiment: Compare usage of collapsed and uncollapsed section view on mobile web (Phabricator task)Tilman Bayer, 2016
- Experiment: Designing for Understanding: How Interface-Level Consent Designs Shape Attention and Understanding in Privacy DisclosuresXiao, 2026
- Experiment: Testing Accordion FormsLuke Wroblewski, 2010
- User researchUser research: Accordion UX - pitfalls of inline accordion and tab designs (forms)Jamie Holst, 2014
- StandardStandard: Understanding SC 4.1.2 Name, Role, ValueW3C WAI, 2026
- GuidanceGuidance: Accordion component (GOV.UK Design System)GOV.UK Design System team, 2025
- Guidance: Accordions on desktopHuei-Hsin Wang, 2023
- Guidance: Accordion Pattern (ARIA Authoring Practices Guide)W3C WAI APG, 2026
- Guidance: AccordionGOV.UK Design System
Related
- TabsUse tabs only for distinct sections people do not need side by side, and never hide what most people need.Answer: moderate.
- Truncation and read moreWhen text is cut short, let everyone reach the full text, and never cut what people use to tell items apart.Answer: weak.
- In-page navigationOn a long page with distinct sections, list links to them near the top.Answer: weak.
- Single page vs multi-stepAdd a review step before anything that commits people, and use steps when questions branch.Answer: weak.