Definition Lists in HTML
by Hiroshi 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> Topic: HTML, XHTML, XML, Forms, W3C, Tutorials
Tags: HTML, XHTML, XML, Forms, W3C
Post's RSS » RSS 2.0, Post's Comments RSS » RSS 2.0


