HTML element: <li>
Availability
|
Partial support as of BlackBerry®
Device Software version 3.7.
Full support as of BlackBerry Device Software
version 4.6.
|
The <li> element specifies a list item. These elements appear with a bullet or number, depending on the enclosing element (<div>, <ol>, or <ul>).
Differences between HTML, XHTML, and XHTML-MP
The type and value attributes were deprecated in HTML 4.01. XHTML (strict) and XHTML-MP do not support these attributes.
Attributes
Attribute
|
Value(s)
|
Description
|
Supported in
|
type
|
A
a
I
i
1
disc
square
circle
|
Deprecated. This attribute specifies the bullet or number style for the list.
|
4.6 or later
|
value
|
number
|
Deprecated. This attribute specifies the list item number if the list item is an ordered list. Subsequent items in that list are numbered sequentially from this value.
|
4.0 or later
|
Common attributes
|
—
|
The <li> element supports the following common attributes:
- class
- dir
- id
- lang
- style
-
title
|
4.6 or later
|
Event attributes
|
—
|
The <li> element supports the following events:
- onclick
- onkeydown
- onkeypress
- onkeyup
- onmousedown
- onmousemove
- onmouseout
- onmouseover
- onmouseup
|
4.6 or later
|
Index
Was this information helpful? Send us your comments.