Use <details> and <summary> for collapsible sections without JavaScript.
For FAQs, disclosure widgets, or simple accordions.
Accessible by default, keyboard-friendly, and supported in modern browsers.
Wrap content in <details> and provide a <summary> as the clickable heading.
<details>
<summary>When to use</summary>
<p>For FAQs, disclosure widgets, or simple accordions.</p>
</details>