# Accordion

> A stack of headings. Each one opens to show more below it.

**Field:** Design  
**Category:** User Interface  
**Also known as:** Expandable Section, Collapsible Panel, Disclosure

## Think of it like

It is like a folded paper fan. Pull one fold open to see what is inside.

## Definition

An accordion is a stack of headings that each open to show more content below them. Only the headings show at first, so a long page becomes a short list. It suits content most people do not need all of, like an FAQ. Content that everyone needs should not hide inside one, because many people never open it.

## Example

A help page lists ten questions. Emma opens only How do I return an item? and reads the answer.

## Example code

```html
<details>
  <summary>How do I return an item?</summary>
  <p>Send it back within 30 days.</p>
</details>
```

details and summary make an open and close section that works with no script.

## Why it matters

It turns a long page into a short list of headings people can scan.

## Common mistake

Hiding key facts in a closed section. Most people never open it.

## Three principles

- **Headings first.** Content folded away.
- **Open what you need.** One at a time.
- **Not for must-reads.** Many never open it.

## Related terms

- [Progressive Disclosure](https://learn.benibix.com/term/design/progressive-disclosure)
- [Tabs](https://learn.benibix.com/term/design/tabs)
- [Tree View](https://learn.benibix.com/term/design/tree-view)

## Taught in

- [Accordions and Carousels](https://learn.benibix.com/learn/design-user-interface/accordions-and-carousels): UI Components, 14/14

---

Source: https://learn.benibix.com/term/design/accordion
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
