Warning:
This wiki has been archived and is now read-only.

Elements/dl

From HTML Wiki
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>tarm1</dt>
  <dd>difinition1</dd>
  <dt>tarm2</dt>
  <dd>difinition2</dd>
</dl>

Example B

A tarm can link to some difinition [try it]:

<dl>
  <dt>tarm</dt>
  <dd>difinition1</dd>
  <dd>difinition2</dd>
</dl>

Example C

A difinition can link to some tarms [try it]:

<dl>
  <dt>tarm1</dt>
  <dt>tarm2</dt>
  <dd>difinition</dd>
</dl>


HTML Reference

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