XML technologies / HTML & XHTML / Alphabetical list of HTML and XHTML elements / dl

(Excerpt from "HTML & XHTML ─ kurz & gut" by Jennifer Niederst Robbins)

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z

   

dl

HTML 4.01 | HTML 5

<dl> ... </dl>

Marks a definition list. Each entry consists of a term (dt) and its description (dd). Definition lists are used for terms and their definitions, as well as other name/value pairs. Within a dl element, there should be only one dt element for each term. However, dt can be followed by several dd elements.

Notes

In HTML 5, the dl element was slightly redefined. It represents an association list consisting of zero or more name/value groups, a description list.

Start/end tag

Required/required

Attributes

Core, internationalization, events, global HTML 5 attributes

  • compact="compact"

    Deprecated. Not in HTML 5. Makes the list as compact as possible. Few browsers support this attribute.

Example

<dl>
  <dt><code>em</code></dt>
  <dd>Markiert hervorgehobenen Text.</dd>
  <dt><code>strong</code></dt>
  <dd>Markiert stark hervorgehobenen Text.</dd>
</dl>

 

> back to the alphabetical list of elements

   

 

 

 

back to top