List Item

End Tag: Optional
Support Key: 2 | 3 | 3.2 | 4 | IE1 | M1 | N1 | O2.1
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [bloo@blooberry.com] =
Main Index | Element Tree | Element Index | HTML Support History


What is it?
The List Item (LI) is only used as a sub-element of a list type. DIR, MENU, OL, and UL all use it to mark a component of their structure. The LI element is the only content of these list structures. The closing </li> tag is optional, as it is implied by the subsequent <li> or end list tags.

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE3 | M | N4B2 | O
%Events%
2 | 3 | 3.2 | 4 | IE4B1 | M | N | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O

Specific Attributes
Note: These attributes only apply when UL and OL are the parent elements.
Clear
2 | 3 | 3.2 | 4 | IE | M | N | O2.1
Required? No
Description:
This attribute helps an author in situations with floating objects (images, tables, etc.) produced through the Left and Right ALIGN attributes. It allows content to stop being flowed around the floated element.
Values:
   None [DEFAULT - No special line breaking effects are applied relative to the floating element.]
   Left [breaks line after this element and moves down vertically until the right margin is clear of floated objects.]
   Right [breaks line after this element and moves down vertically until the right margin is clear of floated objects.]
   All [breaks line after this element and moves down vertically until both margins are clear of floated objects.]
Type
2 | 3 | 3.2 | 4 | IE1 | M | N1 | O2.1
Required? No
Description:
The Type attribute indicates different ordering label schemes to be used instead of the default values for each element in a UL or OL. The TYPE attribute to the LI element is only applicable to UL and OL and accepts values appropriate for each list type. When used at the LI level, all subsequent list labels will carry the new TYPE scheme unless set again by a later LI TYPE attribute.
Values:
Ordered Lists (OL) values:
     A [capital letters]
     a [lower-case letters]
     I [large roman numerals]
     i [small roman numerals]
     1 [default numbering scheme.]
Unordered Lists (UL) values:
     disc [default solid bullet]
     square [solid square]
     circle [hollow bullet]
Value
2 | 3 | 3.2 | 4 | IE1 | M | N1 | O2.1
Required? No
Description:
This attribute is used to indicate a number other than the incremented value for the current List Item (LI) in an Ordered List (OL.) It is thus possible to create a non-sequential list. Values are automatically converted to the TYPE attribute, if present, of the parent OL element or current LI element.
Values: Given as a positive integer.
Example
<ol>
   <li>List item 1</li>
   <li VALUE=5 TYPE="A">List item E</li>
   <li>List item 3</li>
</ol>
Parent Model
<dir> | <menu> | <ol> | <ul>
Content Model
Dir/Menu Context
%In-line Content%
Ol/Ul Context
%In-line Content% | %Block Content%
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...