Website Accordions Explained: Expandable Sections That Visitors Can Use
What is the website control that opens a section of content? An accordion uses interactive headings to reveal or hide associated panels.
1:47 · No narration: the video shows each step as text on screen, and every step is written out below, with buttons that jump the video to it.
Prefer YouTube? Watch this video on our YouTube channel (opens in a new tab).
The six points in the video
This is a silent video. The headings, explanations and labels below reproduce the information on screen.
-
Step 1: Use a clear section heading
The heading should explain the content available inside.
On-screen labels: Specific heading; Associated panel; Clear content purpose.
-
Step 2: Make the opener a real control
The interactive heading needs appropriate button behaviour.
On-screen labels: Keyboard activation; Button semantics; Reachable control.
-
Step 3: Communicate open and closed
The expanded state should be available to assistive technology.
On-screen labels: Collapsed state; Expanded state; Associated content.
-
Step 4: Choose the opening behaviour
Decide whether one or several panels can remain open.
On-screen labels: Single open panel; Several open panels; Consistent behaviour.
-
Step 5: Review what is hidden
Visitors still need a clear route to important information.
On-screen labels: Important content; Discoverable labels; Useful organisation.
-
Step 6: Test the actual interaction
Check opening, closing and moving through the content with a keyboard.
On-screen labels: Open and close; Read the panel; Continue the task.
A practical check for your business
Open and close each important accordion with a keyboard and review the content it reveals. Necessary instructions should stay discoverable and the expanded state should be communicated accurately.
Sources and further detail
Common questions
What is the website control that opens a section of content?
An accordion uses interactive headings to reveal or hide associated panels. Keep the content findable and the interaction understandable.
Go further
More video tips
All 205 videos →
Website Tabs Explained: Switching Between Related Content Panels
Tabbed interfaces, explained.
Modal Dialogs Explained: Focus, Closing and Returning to the Page
Modal dialogs, explained.