Make your own free website on Tripod.com

Back Main GuestBook Contact Music (JS) Appendix

<OL></OL> - Ordered Lists

Ordered lists are numbered lists. You don't number them--the browser does. You must enter <LI> before each list item.

This tag must be closed at the end of the list by typing </OL>.

Attributes for <OL>

  %coreattrs %i18n %events

D type= [CS]
  • "1"
Specifies decimal numbering (1,2,3,4...).
  • "a"
Specifies lower-case lettering (a,b,c,d...).
  • "A"
Specifies upper-case lettering (A,B,C,D...).
  • "i"
Specifies lower-case Roman numerals (i, ii, iii, iv...).
  • "I"
Specifies upper-case Roman numerals (I, II, III, IV...).
This attribute determines which type of numbering will be used by the browser in an ordered list. The default numbering is decimal.

D start= [CN]
  • "__"
    [integer]
Specifies the start number.
This attribute tells the browser where to start numbering. The default starting number is one (or a, if lettering).

Here is an example of an ordered list numbered with capital letters:

  1. This is the first item.
  2. This is the second item.
    1. First sub-item
    2. Second sub-item
  3. This item's number has been changed to 10.
  4. This is the fourth item. (numbered 11)
  5. This item's numbering has been changed to lower-case Roman numerals.
  6. This is the fifth item.
  7. This is the sixth item.

Here is the code for the sample above:

<OL type="A">
<LI>This is the first item.
<LI>This is the second item.
  <OL>
  <LI>First sub-item
  <LI>Second sub-item
  </OL>
<LI value=10>This item's number has been changed to 10.
<LI>This is the fourth item. (numbered 11)
<LI type="i">This item's numbering has been changed to lower-case Roman numerals.
<LI>This is the fifth item.
<LI>This is the sixth item.
</OL>