Search

2/21/2008

Definition Lists. DL, DT and DD

Definition Lists. DL, DT and DD

<DL>
A definition list is the container element for DT and DD elements. The DL element should be used when you want incorporate a definition of a term in your document, it is often used in glossaries to define many terms, it is also used in "normal" documents when the author wishes to explain a term in a more detail (Like this definition).
<DT>
The term currently being defined in the definition list. This element contains inline data.
<DD>
The definition description element contains data that describes a definition term. This data may be either inline, or it may be block level.

Single Definition Term - Single Description
<dl>
<dt>Cascading Style Sheets</dt>
<dd><p>Style sheets are used to provide presentational suggestions.</p>
<p>Documents structured using XML or HTML are able to make use of them.</p></dd>
<dt>Content Management</dt>
<dd>The process of collecting, managing and publishing content to various media.</dd>
</dl>

Multiple Terms - Single Description

<dl>
<dt>Number 9</dt>
<dt>Striker</dt>
<dt>Centre Forward</dt>
<dd>The player who should be scoring the most goals in a game of (real) football.</dd>
</dl>

Single Term - Multiple Descriptions

<dl>
<dt>Centre</dt>
<dd>A point equidistant from all points on the surface of a sphere.</dd>
<dd>In some field sports, the player who holds the middle position on the field, court, or forward line.</dd>
</dl>

Multiple Terms - Multiple Descriptions

<dl>
<dt>Garbage</dt>
<dt>Rubbish</dt>
<dd>Waste material that is disposed of.</dd>
<dd>Television shown during the daytime, "Daytime TV".</dd>
</dl>

沒有留言: