Definition Lists

A definition list (coded as <DL>) usually consists of alternating a definition term (coded as <DT>) and a definition definition (coded as <DD>).

The following is an example of a definition list:

    <DL>
    <DT> Beer
    <DD> Bill's favorite food. 
    <DT> Beer
    <DD> Bill's favorite drink. 
    </DL>

The output looks like:

Beer
Bill's favorite food.
Beer
Bill's favorite drink.

The <DT> and <DD> entries can contain multiple paragraphs (indicated by <P> paragraph tags), lists, or other definition information.

The COMPACT attribute can be used if your definition terms are very short, like the example.

<DL COMPACT>
<DT> Beer
<DD>Bill's favorite food.
<DT> Beer
<DD>Bill's favorite drink.
</DL>

The output looks like:

Beer
Bill's favorite food.
Beer
Bill's favorite drink.

Nested Lists

Lists can be nested.

Here is a sample nested list:

    <UL>
    <LI> A few New England states:
        <UL>
        <LI> Vermont
        <LI> Maine
        </UL>
    <LI> Two Midwestern states:
        <UL>
        <LI> Michigan
        <LI> Indiana
        </UL>
    </UL>

The nested list is displayed as