| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
HTML supports unnumbered, numbered, and definition lists. You can nest lists
too, but use this feature sparingly because too many
nested items can get difficult to
follow.
Unnumbered Lists
To make an unnumbered, bulleted list,
Below is a sample three-item list:
The output is:
The <LI> items can contain multiple paragraphs.
Indicate the paragraphs with the <P> paragraph
tags.
Numbered Lists
A numbered list (also called an ordered list, from which the tag name
derives) is identical to an unnumbered list, except it uses <OL>
instead of <UL>. The items are tagged using the
same <LI> tag. The following HTML code:
produces this formatted output:
Nested Lists
Here is a sample nested list:
The nested list is displayed as
<UL>
<LI> apples
<LI> bananas
<LI> grapefruit
</UL>
<OL>
<LI> oranges
<LI> peaches
<LI> grapes
</OL>
<UL>
<LI> A few New England states:
<UL>
<LI> Vermont
<LI> New Hampshire
<LI> Maine
</UL>
<LI> Two Midwestern states:
<UL>
<LI> Michigan
<LI> Indiana
</UL>
</UL>