Easy Tutorial
❮ Att Button Formtarget Att Area Nohref ❯

HTML <li> value Attribute

HTML <li> Tag

Example

Using the value attribute in an ordered list:


Browser Support

All major browsers support the value attribute.


Definition and Usage

The value attribute sets the value of the list item. Subsequent list items will be numbered starting from this number in ascending order.

The value must be a number and can only be used in an ordered list (<ol>).


Differences Between HTML 4.01 and HTML5

In HTML 5, the value attribute of the <li> element is not deprecated.


Syntax

Attribute Values

Value Description
number Specifies the value of the list item.

❮ Att Button Formtarget Att Area Nohref ❯