LI TAG and ATTRIBUTES

<LI></LI>

This element is used to indicate a list item as contained in an ordered list <OL> or unordered list <UL>. While bullet style can be set explicitly, browsers tend to change styles for bullets when <UL> lists are nested. However, ordered lists generally do not change style automatically, nor do they support outline style numbers (1.1, 1.1.1, and so on). The closing tag </LI> is optional and is not commonly used.


ATTRIBUTES

CLASS = "class name(s)"
STYLE = "style information"
TYPE = "CIRCLE | DISC | SQUARE | a | A | i | I | 1"
VALUE = "number"

EVENTS

onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup


CLASS  See Cascading Style Sheets (CSS) Information.

STYLE  See Cascading Style Sheets (CSS) information.

TYPE  This attribute indicates the bullet type used in unordered lists or the numbering type used in ordered lists. For ordered lists, a value of "a" indicates lowercase letters, "A" indicates uppercase letters, "i" indicates lowercase Roman numerals, "I" indicates uppercase Roman numerals, and "1" indicates numbers. For unordered lists, values are used to specify bullet types. While the browser is free to set bullet styles, a value of DISC generally specifies a filled circle, a value of CIRCLE specifies an empty circle, and a value of SQUARE specifies a filled square.

VALUE  This attribute indicates the current number of items in an ordered list, as defined by the <OL> element. Regardless of the value of TYPE being used to set Roman numerals or letters, the only allowed value for this attribute is a number. List items that follow continue numbering from the value set. The VALUE attribute has no meaning for unordered lists.

Back to Top