Skip to content

Instantly share code, notes, and snippets.

View dhanusir's full-sized avatar

Dhanu Sir dhanusir

View GitHub Profile
@dhanusir
dhanusir / using-details-summary-github.md
Created June 1, 2023 05:18 — 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