Visit Mozilla.org

HTML:Element:li

From MDC

[edit] Summary

List item element is used to indicate a list item as contained in an ordered list (<ol>) or unordered list (<ul>). It can occur only as a child element of previously mentioned elements.

[edit] Attributes

value Deprecated
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 will continue numbering from the value set. The value attribute has no meaning for unordered lists.
type Deprecated
Indicates the numbering type: a indicates lowercase letters, A indicates uppercase letters, i indicates lowercase Roman numerals, I indicates uppercase Roman numerals, and 1 indicates numbers. Type set in an <ol> element is used for the entire list unless a type attribute is used within an enclosed <li> element. This attribute is deprecated, use CSS list-style-type property instead.

[edit] Examples

See <ol> and <ul> examples.

[edit] Notes

[edit] See also


HTML Elements
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
(Quick Links: HTML Element Cross Reference, HTML Category)