HTML
Example
Using the value attribute in an ordered list:
- Coffee
- Tea
- Milk
- Water
- Juice
- Beer
Try it »
Browser support





All major browsers support the value attribute.
Definition and Usage
The value attribute sets the value of a list item. The following list items will continue in ascending order from that number.
The value must be a number and can only be used in an ordered list (
-
).
- element's value attribute.
Syntax
- HTML
- tag
Differences between HTML 4.01 and HTML5
In HTML5, it is not deprecated to use the
HTML