HTML <li> value attribute
Definition and Usage
value
Attribute specifies the number of the list item. The next list item will start from this number and proceed in ascending order.
This value must be a number and can only be used in an ordered list (<ol>in parentheses.
Example
Use the value attribute in an ordered list:
<ol> <li value="100">Coffee</li> <li>Tea</li> <li>Milk</li> <li>Pure Water</li> <li>Juice</li> <li>Beer</li> </ol>
Syntax
<li value="number">
Attribute Value
Value | Description |
---|---|
number | Specify the value of the list item. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |