Name

dl — HTML 4.01 | HTML5

Synopsis

<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.

Notes

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

Attributes

Core, Internationalization, Events, HTML5 Global Attributes

compact="compact"

Deprecated. Not in HTML5. Makes the list as small as possible. Few browsers support this attribute.

Example

<dl>
    <dt><code>em</code></dt>
    <dd>Indicates emphasized text.</dd>

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

Get HTML & XHTML Pocket Reference, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.