HTML: Lists (Part 2)

 

A Definition List

The definition list is the third basic kind of list. The definition list is useful if the information you want to convey involves longer passages (for example, definitions).

The definition list begins with <DL> (for "definition list") and it ends with </DL>. Terms to be defined are preceded by the <DT> tag. The definitions themselves are preceded by the <DD> tag.

 

Example

Here is an example of a definition list:

<b>The Planets of the Solar System</b>

<dl>

<dt>Mercury

<dd>The smallest of the planets and the one nearest the sun, having a sidereal period of revolution about the sun of 88 days at a mean distance of 58.3 million kilometers and a mean radius of approximately 2,414 kilometers.

<dt>Venus

<dd>The second planet from the sun, having an average radius of 6,052 kilometers, a mass of 0.815 times that of Earth, and a sidereal period of revolution about the Sun of 234.7 days at a mean distance of approximately 108.1 million kilometers.

</dl>

 

to see this how this code looks in a window.

 

Other Resources

Try these links on Lists:


Page Link
<OL> Tag www.htmlhelp.com/reference/html40/lists/ol.html
<UL> Tag www.htmlhelp.com/reference/html40/lists/ul.html
<LI> Tag www.htmlhelp.com/reference/html40/lists/li.html

or check out one of our reference books, or look for other help on the Web.

 

Exercise

Work on either 1) your web page, or 2) eEverything.com. Add a definition list with at least three terms (three <DT> tags).

If you work on eEverything.com, give detailed information on the Comfortorino Italian leather sofa and the Good Old Days retro 3-speed blender. The sofa is made of fine black leather, and it stands 7 feet long, 3 feet deep and 4 feet high. Harmonizes with the Comfortorino easy chair and entertainment center, which are also available at eEverything.com (of course). Priced to sell at $2100. The retro blender has 3 speeds ("Chop," "Greased Lightning," and "Cruisin'") and it has a replica 1957 Chevy on the blender lid. Available in white, red or blue. A complement to any kitchen decor, the blender sells for $49.