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

An Ordered List

  1. This is the first item in an ordered list (<OL>).
  2. This is the second item in an ordered list.
  3. 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

  • This is the first item in a menu list (<MENU>).
  • This is the second item in a menu list.
  • This is the third and last item in a menu list.

  • Try it yourself
    Go back the HTML Index Page.
    Author: John J. Rinn, Washtenaw Community College