<LI> | NN all IE all HTML all
<LI>...</LI> | HTML End Tag: Optional
The li element is a single list item that is nested inside an ol or ul list container. The outer container determines whether the li item is preceded with a number or letter (indicating sequence within an order) or a symbol that doesn't connote any particular order. A special category of style sheet attributes are devoted to list formatting. If you apply a style sheet rule to an li element to adjust the color in Navigator 4, only the leading symbol is colored. To color the text as well, wrap the li element inside a span element and apply the style to the span element. This workaround operates fine in other CSS-capable browsers.
Example
    <UL>
        <LI>Larry</LI>
        <LI>Moe</LI>
        <LI>Curly</LI>
    </UL>
Object Model Reference
    [window.]document.getElementById(elementID)
Element-Specific Attributes
type | value
Element-Specific Event Handler Attributes
None.

lang | NN 3 IE 4 HTML 4
lang="languageCode" | Optional
The language being used for the element's attribute values and content. A browser can use this information to assist in proper rendering of content with respect to details such as treatment of ligatures (when supported by a particular font or required by a written language), quotation marks, and hyphenation. Other applications and search engines might use this information to aid the selection of spell-checking dictionaries and the creation of indices.
Example
    <SPAN lang="de">Deutsche Bundesbahn</SPAN>
Value
Case-insensitive language code.
Default
Browser default.
Object Model Reference
    [window.]document.getElementById(elementID).lang

type | NN all IE all HTML 3.2
type="labelType" | Optional
The type attribute provides some flexibility in how the browser displays the item's leading symbol or sequence number. Values are divided into two groups, with one group each dedicated to ol and ul items. For an unordered list (ul), you can specify whether the leading symbol should be a disc, circle, or square; for an ordered list (ol), the choices are among letters (uppercase or lowercase), Roman numerals (uppercase or lowercase), or Arabic numerals. The type attribute is deprecated in HTML 4 in favor of the list-style-type style sheet attribute. Be aware that in Version 4 browsers, the type attribute for a li element sets the type for subsequent li elements in the list unless overridden by a type attribute setting in another li element. More recent versions restrict the effect to the current li element. In general, though, it is best to set the type attribute of the ol or ul element and let that setting govern all nested elements.
Example
    <LI type="square">Chicken Curry</LI>
Value
When contained by a ul element, possible values are disc | circle | square. When contained by an ol element, possible values are A | a | I | i | 1. Sequencing is performed automatically as shown in the following table.
Default
1 and disc.
Object Model Reference
    [window.]document.getElementById(elementID).type

value | NN all IE all HTML 3.2
value="number" | Optional
The value attribute applies only when the li element is nested inside an ol element. You can manually set the number used as a starting point for the sequencing of ordered list items. This can come in handy when you need to break up an ol element with some running text that is not part of the list. Even though the value assigned to this attribute is a number, it does not affect the type setting. For example, setting value to 3 when type is A means that the sequence starts from that li element with the letter C.
Example
    <LI value="3">Insert Tab C into Slot M. Tighten with a wingnut.</LI>
Value
Any positive integer.
Default
1
Object Model Reference
    [window.]document.getElementById(elementID).value