Details HTML element with open attribute

Tagged collapsible, details, no-javascript, open  Languages html

The details HTML element can be used as a no-Javascript alternative to e.g. the Bootstrap collapsible element:

<details open>
  <summary>This is always shown</summary>
  <p>This is hidden.</p>
</details>