![]() |
VOOZH | about |
The <li> value attribute in HTML is used to specify the initial value of the list item. It is only applicable on the ordered list.
Syntax:
<li value="number">list items </li>
Attribute Value: This attribute contains single value number which is used to specify the value of the list items.
Example 1: This example uses <li> value attribute to create list of items.
Output:
Example 2: This example uses <li> value attribute to create list of items.
Output:
Supported Browsers: The browser supported by <li> value attribute are listed below: