## Lists

You can create a variety of lists in your document by using the UL, OL, MENU, and DIR elements in conjunction with the LI element. You can also create definition lists that give you a simple two-column list for terms and their definitions.

For example, you can create a bulleted list, consisting of individual items preceded by a bullet character, by using UL and LI, as in the following example:

    <UL>
    <LI>Bulleted Lists
    <LI>Ordered Lists
    <LI>Directory Lists
    <LI>Itemized Lists
    <LI>Definition Lists
    </UL>

This displays as:

- Bulleted Lists
- Ordered Lists
- Directory Lists
- Itemized Lists
- Definition Lists

You use the OL and LI elements to create an ordered list. The ordered list consists of individual items that are sequentially numbered or lettered. To set the style of numbering or lettering, you use the TYPE= attribute in OL. Similarly, you use the START= attribute to set the initial number or letter. By default, the style is decimal numbers starting at 1.

    <OL>
    <LI>Step One.
    <LI>Step Two.
    <LI>Step Three.
    </OL>

This displays as:

1. Step One.
2. Step Two.
3. Step Three.

The DIR and LI elements create a directory list, consisting of individual items (none containing more than 20 characters) displayed in columns. The MENU and LI elements create an itemized list consisting of individual items.

A definition list formats terms at the left, with their definitions indented below. You use the DL element to create the list, the DT element to refer to the term, and the DD element to contain the term's definition. The following example shows how to use these elements to create a list:

    <DL>
    <DT>Cat
    <DD>A small domesticated mammal.
    <DT>Lizard
    <DD>A reptile generally found in dry areas.
    </DL>

This displays as:

Cat
  A small domesticated mammal.
Lizard
  A reptile generally found in dry areas.

© 1996 Microsoft Corporation