Lists

There are three types of lists: ordered, unordered and detailed. These are discussed in the following sections.

Ordered List

An ordered list has the members of its list numbered. The list members are wrapped by <OL> and </OL>. The list members themselves are preceded with <LI>. For exampe:

<OL>
<LI>first
<LI>second
<LI>third
</OL>

gives

  1. first
  2. second
  3. third

Unordered List

This is used if you don't want the list members numbered. Here the list members are wrapped by <UL> and </UL>. Again, the list members themselves are preceded with <LI>. For exampe:

<UL>
<LI>Chinese
<LI>Indian
<LI>Mexican
</UL>

gives


Descriptive List

If you have a list where you elaborate on each item then this is the list for you. The list members are wrapped by <DL> and </DL>. In this case, the list members are split into the member title <DT>, and the member details <DD> with which you can elaborate to your heart's content. For example, here is a described shopping list:

<DL>
<DT>Milk
<DD>Semi-skimmed or skimmed but not full fat.
<DT>Fruit
<DD>Anything from oranges, bananas and apples, but definitely no grapefruit.
<DT>Dairy
<DD>Brie, Camembert and lots of chocolate. Ah well, forget the diet!
</DL>

gives

Milk
Semi-skimmed or skimmed but not full fat.
Fruit
Anything from oranges, bananas and apples, but definitely no grapefruit.
Dairy
Brie, Camembert and lots of chocolate. Ah well, forget the diet!

Go To Next Page

Go To Previous Page

Go To Overview