A regular list is a sequence of paragraphs, each of which
may be preceded by a special mark, sequence number, or nothing
at all. The syntax is:
<UL>
<LI> list element </LI>
<LI> another list element ... </LI>
</UL>
where the opening element defining the list type can be one
of
- UL -- A list of multi-line paragraphs, listed separately
and usually marked by a bullet or similar symbol (Unordered List)
- OL -- A list of multi-line paragraphs, listed separately
and ordered numerically in some way (Ordered List)
- MENU -- An Unordered List of smaller paragraphs, this is
similar to UL but is formatted (if possible) in a more compact manner.
NOTE: MENU was dropped from the language as of
HTML 4.0 -- you should use UL instead.
- DIR -- A list of short elements, typically less than 20
characters in length. These may may be arranged in columns across the
page, as opposed to one above the other. This is browser dependent.
>NOTE: DIR was dropped from the language as
of HTML 4.0 -- you should use UL instead.
Here are four examples, showing the rendering for the four different
types. The text we will format is as follows:
Hi. The following is an example list.
<UL>
<LI> list element. The quick brown fox jumped over the
lazy dog. The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
<LI> another list element ...
</UL>
The following four examples use the four possible list elements
UL, OL, MENU and DIR.
UL List
Hi. The following is an example list.
- list element. The quick brown fox jumped over the
lazy dog. The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
- another list element ...
OL List
Hi. The following is an example OL (ordered) list.
- list element. The quick brown fox jumped over the
lazy dog. The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
- another list element ...
MENU List
Hi. The following is an example MENU list.
DIR List
Hi. The following is an example DIR list.
list element. The quick brown fox jumped over the
lazy dog. The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
The quick brown fox jumped over the lazy dog.
another list element ...