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.
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.
Some people leverage on a behavioral defect in browsers whereby
embedding plain data in a list structure without LI elements will induce
indentation. This is illegal HTML and not recommended. Other legal
methods can be used to generally
guarantee indentation.
Changing the font attributes (size, color, etc.) of the contents
of a List Item usually does not affect the appearance of the listing
items (bullets)
Lists are nestable.
Even though the TYPE attribute for UL (and LI within UL) is listed
in the HTML 3.2 recommendation, it is still not widely supported.
The VALUE attribute will have no effect within an unordered list
(UL) context.
Browser Peculiarities
Internet Explorer, Mosaic and Netscape all produce the above
described indenting behavior for the mentioned invalid HTML.
Only Netscape supports the TYPE attribute in application to unordered
lists (UL.)