HTML Other Lists

HTML also supports description lists. The Description Lists is used to show the set of items with an added description to the individual items in the list.

HTML Description Lists

A description list is a list of terms, with a description of each term.

The <dl> tag defines the description list, the <dt> tag defines the term (name), and the <dd> tag describes each term:

Example

<dl>

  <dt>Coffee</dt>

  <dd>- black hot drink</dd>

  <dt>Milk</dt>

  <dd>- white cold drink</dd>

</dl>

Coffee
- black hot drink
Milk
- white cold drink

Chapter Summary

TagDescription
<dl>Defines a description list
<dt>Defines a term in a description list
<dd>Describes the term in a description list

Comments