Definition Lists in HTML

by on July 9th, 2007

A definition list is not a list of items. This is a list of terms and explanation of the terms. A definition list starts with the dl tag. Each definition-list term starts with the dt tag. Each definition-list definition starts with the dd tag.

Example of Definition List
<dl>
	<dt>Coffee</dt>
		<dd>Black hot drink</dd>
	<dt>Milk</dt>
		<dd>White cold drink</dd>
</dl>

Inside a definition-list definition – dd tags – you can put paragraphs, line breaks, images, links, other lists, etc.

Try this out:

A Definition List
<dl>
   <dt>Coffee</dt>
          <dd>Black hot drink.</dd>
   <dt>Milk</dt>
          <dd>White cold drink.</dd>
</dl>

Share