Set the list items to increment from the number "200":
The value property sets or returns the value of the value attribute of a list item.
The value attribute sets the value of a list item, and the following list items will increment from that number.
Note: The value must be a number and can only be used in ordered lists (<ol>).
The value property is supported in all major browsers.
Return the value property:
Set the value property:
Value | Description |
---|---|
number | Specifies the value of the list item |
Return Value: | A Number, representing the value of the list item |
---|
Return the value of a list item:
The result of x will be:
HTML reference: HTML <li> value attribute