<summary>
The always-visible, clickable caption of a details element.
Baseline: Widely available · Interactive
When to use it
First child of details, phrased so the closed state makes sense on its own.
When not to
No interactive content inside it (links/buttons in a summary fight the toggle), and only valid inside details.
Example
Transcript
Welcome to the field guide…
<details>
<summary>Transcript</summary>
<p>Welcome to the field guide…</p>
</details>