The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <OBJECT> | Next Tag: <OPTGROUP> |


<OL>

Creates a numbered (ordered) list of items.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later
Notes:
  • Use the <LI> tag to create each new numbered item in the list.
  • This tag requires the </OL> end tag.
Attributes:
CLASS = "Text"
The style sheet class used by the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • You can specify two or more classes; be sure to separate each class name with a space.

COMPACT
Tells the browser to display a compact version of the list.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later Not supported Not supported

Notes:

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • Although you can use letters and numbers for the ID, the first character must be a letter.

LANG = "Text"
The language used by the tag's attribute values and text content.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 4.0 and later Not supported

START = "Text"
The number of the first item in the list.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.2 and later 1.0 and later 1.0 and later

Notes:

STYLE = "Text"
The style or styles to use with the tag.

Support:

HTML StandardInternet ExplorerNetscape Navigator
4.0 and later 3.0 and later 4.0 and later

Notes:

  • If you enter multiple style properties, separate each one with a semi-colon (;).

TYPE = "Text"
The type of number to use for each list item.

Support:

HTML StandardInternet ExplorerNetscape Navigator
3.2 and later 1.0 and later 1.0 and later

Notes:

  • You have the following choices for this attribute:
    1      Standard numbers (1, 2, 3)
    a      Lowercase letters (a, b, c)
    A      Uppercase letters (A, B, C)
    i      Small Roman numerals (i, ii, iii)
    I      Large Roman numerals (I, II, III)
    
  • This attribute is deprecated.

Example:
My Ten Favorite U.S. City Names:
<OL>
<LI>Toad Suck, Arkansas
<LI>Panic, Pennsylvania
<LI>Dismal, Tennessee
<LI>Boring, Maryland
<LI>Hell, Michigan
<LI>Two Egg, Florida
<LI>Muck City, Alabama
<LI>Rambo Riviera, Arkansas
<LI>King Arthur's Court, Michigan
<LI>Buddha, Indiana
</OL>
How It Looks:
My Ten Favorite U.S. City Names:
  1. Toad Suck, Arkansas
  2. Panic, Pennsylvania
  3. Dismal, Tennessee
  4. Boring, Maryland
  5. Hell, Michigan
  6. Two Egg, Florida
  7. Muck City, Alabama
  8. Rambo Riviera, Arkansas
  9. King Arthur's Court, Michigan
  10. Buddha, Indiana

| Index | Previous Tag: <OBJECT> | Next Tag: <OPTGROUP> |