Description lists, formerly known as definition lists, are a form of HTML markup. While they are not a part of Markdown, they may be created on Stack Exchange through inline HTML. However, they are not displayed in any helpful way, for example.

<dt>Word 1</dt><dd>Definition 1</dd>
<dt>Word 2</dt><dd>Definition 2</dd>
<dt>Word 3</dt><dd>Definition 3</dd>

Paragraph after description list. Notice the lack of spacing.

is presented as:

Word 1
Definition 1
Word 2
Definition 2
Word 3
Definition 3

Paragraph after description list. Notice the lack of spacing.

The default styling for <dd> is margin-inline-start: 40px in HTML5, and I believe that has been widely implemented in various browsers and standards for some time, yet this default is overwritten on Stack Exchange. Can at least the default indentation be restored? I would be happy if <dt> was bolded as well, and <dd> had margin-bottom: .8em.

  • Related: Better style for HTML 'definition list' <dl> elements (actually a duplicate, but since this question got [status-review] tag instead...) Commented May 30, 2020 at 0:04
  • 4
    Thanks for the suggestion. We're doing some active work around this and will update here when there's more.
    – Jon Chan
    Commented Aug 18, 2020 at 20:00
  • This should be updated with meta.stackexchange.com/questions/353446/new-post-formatting
    – Jon Chan
    Commented Sep 9, 2020 at 12:59
  • 2
    cough You should post an answer :D Commented Sep 9, 2020 at 13:57
  • And you should @ mention @JourneymanGeek
    – Luuklag
    Commented Sep 9, 2020 at 16:06
  • 2
    Hmph.. fine @JonChan ^ see above comment 😁 Commented Sep 9, 2020 at 16:07
  • Does this answer your question? New post formatting
    – zcoop98
    Commented Nov 21, 2023 at 22:41
  • @zcoop98: The spacing issue on a paragraph following a description list has been fixed, and bolding on <dd> is active. I wish I had done a screenshot so others could appreciate the change before and after. However, still no margin-inline-start to indent <dt>. Commented Dec 3, 2023 at 1:54


You must log in to answer this question.

Browse other questions tagged .