HTML/Elements/dl

From W3C Wiki
< HTML‎ | Elements
Revision as of 21:18, 12 October 2013 by Windigo (Talk | contribs)

Jump to: navigation, search

<dl>

The <dl> element represents the the definition list.

Point

  • Each group must consist of one or more names (dt elements) followed by one or more values (dd elements).


HTML Attributes

See global attributes.


Examples

Example A

[try it]

<dl>
  <dt>term1</dt>
  <dd>definition1</dd>
  <dt>term2</dt>
  <dd>definition2</dd>
</dl>

Dl01.png

Example B

A term can have multiple definitions:

<dl>
  <dt>term</dt>
  <dd>definition1</dd>
  <dd>definition2</dd>
</dl>

Dl02.png

Example C

A definition can have multiple terms:

<dl>
  <dt>term1</dt>
  <dt>term2</dt>
  <dd>definition</dd>
</dl>

Dl03.png

HTML Reference

The HTML5 specification defines the <dl> element in 4.5.8 The dl element.