Examples of Lists in the Document Body
The following are examples of the most common types of lists found
in HTML. All of these lists have the following form:
-- <list type> --|-- <LI> -- list item -|-- </list type> --|
^ |
|----------------------|
where "list type" is one of: UL, OL, DIR, MENU
See how your browser displays each of these list types.
An Unordered List
- This is the first item in an unordered list (<UL>).
- This is the second item in an unordered list.
- This is the third and last item in an unordered list.
An Ordered List
- This is the first item in an ordered list (<OL>).
- This is the second item in an ordered list.
- This is the third and last item in an ordered list.
A Directory List
This is the first item in a directory list (<DIR>).
This is the second item in a directory list.
This is the third and last item in a directory list.
A Menu List
Try it yourself
Go back the HTML Index Page.
Author: John J. Rinn, Washtenaw Community College