Skip to content

Instantly share code, notes, and snippets.

View xemed-ahope's full-sized avatar

Aaron Hope xemed-ahope

  • Xemed LLC
View GitHub Profile
@xemed-ahope
xemed-ahope / using-details-summary-github.md
Created January 29, 2025 18:34 — forked from scmx/using-details-summary-github.md
Using <details> <summary> expandable content on GitHub with Markdown #details #summary #markdown #gfm #html

How to use <details> <summary> expandable content on GitHub with Markdown

Firstly, what is <details> <summary>?

The HTML Details Element (<details>) creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label can be provided using the <summary> element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details.

Example