Help Center

Local Navigation

HTML element: <li>

Availability

BlackBerry® Device Software 3.7 or later

The <li> element specifies a list item. These elements appear with a bullet or number, depending on the enclosing element (<div>, <ol>, or <ul>).

Considerations

The type and value attributes were deprecated in HTML 4.01.

Attributes

Attribute

Value(s)

Description

Availability

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 class, dir, id, lang, style, and title attributes.

For more information, see Common attributes.

Event attributes

The <li> element supports the onclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, and onmouseup events.

For more information, see HTML event attributes.

Index


Was this information helpful? Send us your comments.