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 in HTML (required in XHTML),
as it is implied by the subsequent <li>
or end list tags.
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.
[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 left 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.]
This is an SGML Document Access
(SDA) attribute. SDA attributes are designed to transform HTML (and
other SGML-based documents) to the ICADD
DTD - which is used in creating accessible documents for users with
visual disabilities (rendering in Braille, large print, speech
synthesis, etc.) The attribute value specifies the name of the element
to convert this element to in the SDA element group (in this case the
'LItem' element - "List Item NOTE, Note in Text".)
Value:LItem (Denotes 'List Item NOTE, Note in Text' in SDA.)
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.
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] round [also a hollow bullet]
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: Decimal integers; some browsers may
even accept "0" or negative numbers as valid (see browser peculiarities.)
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
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.
Internet Explorer, Mosaic and Netscape all produce the above
described indenting behavior for the mentioned invalid HTML.
Netscape 4.0 and above support the use of ALL allowable TYPE values for
ALL list types (DIR, MENU, OL and UL.) Internet Explorer, Opera and
Netscape 3.0 and before only allow the UL Types for UL lists, and OL
Types for OL lists.
VALUE attribute behavior for "0" and negative values: IE: (all) Value ignored Netscape/Mozilla: (all) Both value types treated as "1" (default) Opera 2.1-6.x: Value Ignored Opera 7.x+: "0" honored; negative values cause no marker to be rendered on
that LI or any thereafter.