🖼️Accordion
Also known as Expandable Section, Collapsible Panel, Disclosure
A stack of headings. Each one opens to show more below it.
Think of it like
It is like a folded paper fan. Pull one fold open to see what is inside.
Example
A help page lists ten questions. Emma opens only How do I return an item? and reads the answer.
Why it matters
It turns a long page into a short list of headings people can scan.
Definition
Example code
html
<details>
<summary>How do I return an item?</summary>
<p>Send it back within 30 days.</p>
</details>Try it
Three working days across Austria, five to the rest of the EU.
1 of 3 open. The folded ones are the ones support gets asked about.
Open one. Anything still folded away is read by far fewer people.
Common mistake
Key takeaways
- 1Headings first. Content folded away.
- 2Open what you need. One at a time.
- 3Not for must-reads. Many never open it.