<summary>
The summary element provides the visible, clickable heading for a details disclosure widget.
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
| Environment | Since version |
|---|---|
| chrome | 12 |
| firefox | 49 |
| safari | 6.0 |
| edge | 79 |