Definition List | WebReference

Definition List

HTML 4.01 Element Reference

By Lee Underwood

Return to HTML 4.01 element index page

Name: Definition List

<dl> ... </dl>

Description: Encloses a list consisting of several elements, each containing two parts: a term <dt> and a description <dd>.

Browser Compatibility: NN: 1.0+ / IE: 2.0+ / Opera: 4+

Attributes:
  • class
  • compact*
  • dir
  • id
  • lang
  • onclick
  • ondblclick
  • onkeydown
  • onkeypress
  • onkeyup
  • onmousedown
  • onmousemove
  • onmouseout
  • onmouseover
  • onmouseup
  • style
  • title

* Deprecated

Code Example:

<dl>
<dt>Guitar</dt>
<dd>A stringed instrument with various sounds.</dd>
</dl>

XHTML Notes: The closing </dl> element is required.




Created: March 15, 2005

URL: http://webreference.com/html/reference/specs/