HTML <details> Element Reference

The HTML <details> element creates a disclosure widget that can reveal or hide additional information.

<details>

HTML <details> Element Reference

The HTML <details> element creates a disclosure widget that can reveal or hide additional information.

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 details element example.

<details>
  <summary>System requirements</summary>
  <p>A modern web browser is required.</p>
</details>

Related references

Description

The HTML <details> element creates a disclosure widget that can reveal or hide additional information.

References

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

Similar or alternative tools

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