The end tag </LI> can always be omitted, and it usually is omitted.
When the (innermost) enclosing list element is UL or DIR or MENU:
attribute name | possible values | meaning |
---|---|---|
TYPE | DISC, SQUARE, CIRCLE | bullet style |
When the (innermost) enclosing list element is OL:
attribute name | possible values | meaning |
---|---|---|
TYPE | 1, a, A, i, I | numbering style (as in OL) |
VALUE | integer | sequence number (see OL) |
In both cases, the attributes are deprecated in HTML 4.0. For VALUE, especially non-positive values are inconsistently supported in browsers.
<LI>A list item.</LI>
For more realistic examples, see Examples of various list elements in HTML and examples given in the descriptions of UL, DIR, MENU,and OL element.
The list of bullet types was chosen to cater for the original bullet shapes used by Mosaic in 1993. The list is not very logical. Usually the default bullet type in UL lists is DISC, if the list is not within a UL list, and SQUARE and CIRCLE in the next levels of nesting. In Lynx, the situation is similar with the shapes DISC, SQUARE, and CIRCLE presented as star (*), plus (+) and letter o.
It is hard to imagine any good use for the TYPE attribute in a LI element, as opposite to defining the bullet type for all items of a list in a UL element or other list element.