dl

FilterElements

<dl> ... </dl>

Indicates a definition list. Each item in a definition list consists of two parts: a term (dt) and description (dd), which can represent terms and definitions or other name-value pairs. Within a dl, there should not be more than one dt element for each term, however, the dt may be followed by multiple dd elements.

In HTML5, the dl element has been slightly redefined as an "association list consisting of zero or more name-value groups (a description list)."

Start/End Tags

Required/Required

Specifications

  • HTML 4.01
  • HTML5

compact

Values: None in HTML. compact="compact" in XHTML.
Deprecated. Not in HTML5. Makes the list as small as possible. Few browsers support this attribute.
<dl>
<dt><code>em</code></dt>
<dd>Indicates emphasized text.</dd>

<dt><code>strong</code></dt>
<dd>Denotes strongly emphasized text.</dd>
</dl>

Rendered Example

em
Indicates emphasized text.
strong
Denotes strongly emphasized text.