Skip to content
HTML.ONE
Home HTML Elements

HTML <summary> Element

Provides the visible label for a details disclosure widget.

Example

<details><summary>Show answer</summary>42</details>

Further reference

HTML Living Standard

Live preview