HTML <summary> Element Reference

The HTML <summary> element supplies the visible label for a details disclosure widget.

<summary>

HTML <summary> Element Reference

The HTML <summary> element supplies the visible label for a details disclosure widget.

Categories

  • Interactive

Tag omission

Consult the HTML Living Standard for the precise tag-omission rules.

Content model

  • Detailed content-model guidance will be added to this reference.

Attributes

Examples

Example

A practical summary element example.

<details>
  <summary>Show advanced options</summary>
  <p>Advanced settings appear here.</p>
</details>

Related references

Description

The HTML <summary> element supplies the visible label for a details disclosure widget.

References

  1. HTML Living Standard: Index of elements
  2. MDN: HTML <summary> Element

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies