20

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.

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

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.

6

0

You must log in to answer this question.

Browse other questions tagged .