What is the ‘details’ element, and how is it used?

<details> provides a collapsible section for content, often paired with the <summary> element as the clickable title.

Example:

<details>
  <summary>More info</summary>
  <p>Additional information...</p>
</details>