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

| Index | Previous Tag: <LEGEND> | Next Tag: <LINK> |


<LI>

Creates an item in a numbered list (see <OL>) or an unordered list (see <UL>).

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later
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.

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

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"
Sets the number format (for a numbered list) or the bullet format (for a bulleted list)..

Support:

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

Notes:

  • For a numbered list, 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)
    
    For an unordered list, you have the following choices:
    disc   The standard solid bullet
    circle Circular bullet
    square Square bullet
    
  • This attribute is deprecated.

VALUE = Positive integer
The item number in an ordered list.

Support:

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

Notes:

Example:
<B>My Ten Favorite U.S. City Names:</B>
<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 VALUE=11>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: <LEGEND> | Next Tag: <LINK> |