
The Complete Idiot's HTML Tag Reference
| Index
| Previous Tag: <OBJECT>
| Next Tag: <OPTGROUP>
|
<OL>
Creates a numbered (ordered) list of items.
Support:
-
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 Standard | Internet Explorer | Netscape 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 Standard | Internet Explorer | Netscape Navigator |
2.0 and later |
Not supported |
Not supported |
Notes:
- ID
= "Text"
An alphanumeric string that uniquely identifies the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape 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 Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
4.0 and later |
Not supported |
- START
= "Text"
The number of the first item in the list.
-
Support:
-
HTML Standard | Internet Explorer | Netscape 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 Standard | Internet Explorer | Netscape 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 Standard | Internet Explorer | Netscape 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:
- Toad Suck, Arkansas
- Panic, Pennsylvania
- Dismal, Tennessee
- Boring, Maryland
- Hell, Michigan
- Two Egg, Florida
- Muck City, Alabama
- Rambo Riviera, Arkansas
- King Arthur's Court, Michigan
- Buddha, Indiana
| Index
| Previous Tag: <OBJECT>
| Next Tag: <OPTGROUP>
|
|