Name
<LI> — NN all IE all HTML all
Synopsis
<LI>...</LI>
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. Therefore, a number of
formatting attributes for LI,
OL, and UL elements are
deprecated in HTML 4.0.
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 works the same way in
Navigator and Internet Explorer.
Example
<UL>
<LI>Larry
<LI>Moe
<LI>Curly
</UL>Object Model Reference
- IE
[window.]document.all.elementID
Attributes
|
|
|
|
|
|
|
|
|
|
|
Event Handler Attributes
|
Handler |
NN |
IE |
HTML |
|---|---|---|---|
onClick |
n/a |
4 |
4 |
onDblClick |
n/a |
4 |
4 |
onDragStart |
n/a |
4 |
n/a |
onHelp |
n/a |
4 |
n/a |
onKeyDown |
n/a |
4 |
4 |
onKeyPress |
n/a |
4 |
4 |
onKeyUp |
n/a |
4 |
4 |
onMouseDown |
n/a |
4 |
4 |
onMouseMove |
n/a |
4 |
4 |
onMouseOut |
n/a |
4 |
4 |
onMouseOver |
n/a |
4 |
4 |
onMouseUp |
n/a |
4 |
4 |
onSelectStart |
n/a |
4 |
n/a |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access