Codectionary / Developer documentation / HTML

<dl>, <dt>, <dd>

The description list group represents a list of term/description pairs — like a glossary or metadata list. <dl> wraps the whole list, <dt> defines each term, and <dd> defines its associated description. Unlike <ul>/<ol>, description lists are not bulleted or numbered by default.

Syntax

<dl>
  <dt>Term</dt>
  <dd>Description of the term.</dd>
</dl>

Examples

Glossary

A simple glossary of terms and definitions.

<dl>
  <dt>HTML</dt>
  <dd>The standard markup language for creating web pages.</dd>
  <dt>CSS</dt>
  <dd>The language used to style HTML content.</dd>
</dl>

Multiple Descriptions

A single term can have more than one description.

<dl>
  <dt>API</dt>
  <dd>Application Programming Interface</dd>
  <dd>A set of rules that lets applications communicate.</dd>
</dl>

Metadata List

Using a description list for key-value metadata.

<dl>
  <dt>Author</dt>
  <dd>Jane Smith</dd>
  <dt>Published</dt>
  <dd>July 16, 2026</dd>
</dl>

Best practices

  • Use description lists for genuine term/description pairs, like glossaries, metadata, or FAQs — not as a generic layout tool
  • A dt can be followed by multiple dd elements if a term has several descriptions
  • Avoid using dl purely to achieve a two-column visual layout — that is a CSS concern unless the content really is term/description pairs
  • Style with CSS (e.g., display: grid or flex on dl) for custom layouts rather than default browser styling

At a glance

Purpose
Structure and meaning for web content
File extension
.html · .htm
Runs in
Web browsers
Usually used with
CSS and JavaScript

Specifications & further reading

Related HTML documentation