New Sep 18, 2024

Definitions Lists in Markdown

More Front-end Bloggers All from Geoff Graham View Definitions Lists in Markdown on geoffgraham.me

I’ve re-discovered the definition list (<dl>) element and a newfound love for it. I’d never reached for one when writing in Markdown before (regular-ol’ lists are so darn easy) but found myself needing to this morning.

It’s not tough to find the information. This is just the first time I’ve looked it up and now I see that definition lists are just as easy and convenient in Markdown as ordered and unordered lists.

First Term
: This is the definition of the first term.

Second Term
: This is one definition of the second term.
: This is another definition of the second term.

That’s it. Ordered list items are prepended by a hash symbol (#), unordered list items are prepended by an asterisk (*) or dash (-), and now I know that definition list items (well, technically it’s the definitions, not the terms) are prepended by a single colon (:).

Thank you, Matt Cone!

Scroll to top