This website may use cookies. More info. That's Fine x
Welcome Login

dl, dt and dd tags


<dl> tag defines a description list.

<dl> tag is used in conjunction with <dt> (defines description terms) and <dd> (describes description data).

 

Eg:

<dl>
  <dt>Coffee</dt>
    <dd>Black hot drink</dd>
  
  <dt>Milk</dt>
    <dd>White cold drink</dd>
</dl>

 

 

Eg2: multiple terms and multiple descriptions.  Useful when defining a few words which share a multiple common meanings.

<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>

Created on: Friday, August 23, 2013 by Andrew Sin