Tutorials References Exercises Sign Up Menu
Create Website Get Certified Pro

HTML <li> value Attribute

❮ HTML <li> tag


Use of the value attribute in an ordered list:

  <li value="100">Coffee</li>
Try it Yourself »

Definition and Usage

The value attribute sets the value of a list item. The following list items will increment from that number.

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

Browser Support

value Yes Yes Yes Yes Yes


<li value="number">

Attribute Values

Value Description
number Specifies the value of the list item

❮ HTML <li> tag