ORDERED LISTS

<ol>, <li>
Make numbered lists.


<html>
<head>
<title>Ordered Lists</title>
</head>

<body>

<ol>
<li>The first item in the list.</li>
<li>The second item in the list.
    This line is still part 
    of the second item.</li>
<li>The third item in the list.</li>
</ol>

</body>
</html>

Use <li> ... </li> tag for each item in the list.

Notes

Each item in the list is set off with a number. For lists without numbers see the previous topic, Unordered Lists. Ordered lists and unordered lists work the same.

Use ordered lists for lists that should be numbered, like lists of instructions. Don't try to number lists yourself. When you need to add an item or change the order, you get stuck making the changes. If you use an ordered list, your list gets renumbered automatically (and correctly) every time.

A list item can as long as you want. It can contain paragraphs and other lists.

Try This

Make an ordered list that contains unordered lists as list items.

Try different combinations of list of lists to see how they nest.

LaEdit

To add an ordered list to your Web page

  1. Position the insertion point.
  2. Pick Lists»Ordered <ol></ol> .
  3. Then use Lists»Item <li></li> for each item.

Copyright © 2000 P.J. LaBrocca. http://LaBrocca.com