value(HTML attribute)

Syntax

value="number"

Description

When the
value attribute is applied to an
li, it sets that list item’s number. The
li elements that follow the one to which
value is applied increment from that number.
Although this attribute takes a numeric value, the value that’s actually
displayed may be non-numeric (for more on this, see start). The browser interpretation of the example code
is shown in Figure 1.

Figure 1. Changing list item numbering using the
value attribute

Example

The example below shows an ordered
list item whose value is set to
"99":