Unordered Lists |
Definition Lists |
HTML for People Who Want to Learn -- Lists for Starters |
Ordered lists are very useful when you want to make a list where the order of the list items is important. Ordered lists are also very easy to make. To begin an ordered list, type <OL>. Begin each item in the list with <LI>, which signifies a "list item". When you are finished with the list, type the closing tag, </OL>.
<OL>
Begin the ordered list
<OL>
<LI>The first item in the list
Type <LI> before each list item
(<LI> does not require a closing tag)
<OL>
<LI>The first item in the list
<LI>The second item in the list
<LI>The third item in the list
Insert all the items of the list
<OL>
<LI>The first item in the list
<LI>The second item in the list
<LI>The third item in the list
</OL>
To end the ordered list, type the closing tag
<OL> <LI>The first item in the list <LI>The second item in the list <OL> <LI>The first sub item <LI>The second sub item <OL> <LI>One more sub item </OL> <LI>The third sub item </OL> <LI>The third item in the list </OL>
NOTE: Each nested list in the example above is indented for readability. The spacing does not effect the rendering of the lists.
You can define how the list is numbered by inserting an attribute inside of either the <OL> tag or the <LI> tag. You can even define what number the list should start at.
<OL TYPE=A> <LI>The first item <LI>The second item <LI>The third item </OL>
|
<OL TYPE=a> <LI>The first item <LI>The second item <LI>The third item </OL>
|
<OL TYPE=I> <LI>The first item <LI>The second item <LI>The third item </OL>
|
<OL TYPE=i> <LI>The first item <LI>The second item <LI>The third item </OL>
|
<OL TYPE=1> <LI>The first item <LI>The second item <LI>The third item </OL>
|
<OL START=4> <LI>The fourth item <LI>The fifth item <LI>The sixth item </OL>
|
Back to Unordered Lists |
Lists for Starters |
E-mail |
Next: Definition Lists |
Last Modified: Saturday, 18-Jul-98 21:51:20 PDT
Page URL: http://geocities.datacellar.net/SiliconValley/Vista/2823/text/lists_ol.html