The value attribute of the LI element specifies the number of the list item.
<ol>
<li>first list item</li>
<li>second list item</li>
<li>third list item</li>
<li value="7">fourth list item</li>
<li>fifth list item</li>
<li>sixth list item</li>
</ol>
| Attribute | Value | Explanation |
|---|---|---|
| value=" " | number | the number of the list item |
The use of this attribute is deprecated.
You can use it with the type attribute.
<ol type="I">
<li>first list item</li>
<li>second list item</li>
<li>third list item</li>
<li value="7">fourth list item</li>
<li>fifth list item</li>
<li>sixth list item</li>
</ol>
<ol>
<li>First list item</li>
<li>Second list item</li>
<li>Third list item</li>
<li value="7">Fourth list item</li>
<li>Fifth list item</li>
<li>Sixth list item</li>
</ol>
<ol type="I"> <li>First list item</li> <li>Second list item</li> <li>Third list item</li> <li value="7">Fourth list item</li> <li>Fifth list item</li> <li>Sixth list item</li> </ol>