Skip to content
HTML.ONE
Home HTML Elements

HTML <details> Element

Creates a disclosure widget with expandable content.

Example

<details><summary>More information</summary><p>Details here.</p></details>

Further reference

HTML Living Standard

Live preview