<summary>

The summary element provides the visible, clickable heading for a details disclosure widget.

Since HTML5 Spec ↗

Syntax

<summary>...</summary>

Examples

<details>
  <summary>FAQ: How do refunds work?</summary>
  <p>Refunds are processed within 5 days.</p>
</details>
Output
Renders a clickable disclosure label with a default triangle marker that toggles the answer.

Notes

Must be the first child of <details>. Style the marker with ::marker or list-style. It is focusable and toggles on Enter/Space automatically.

Browser & runtime support

EnvironmentSince version
chrome 12
firefox 49
safari 6.0
edge 79

See also