<ol><li value="">

Browser
  • IE
  • Cr
  • Sf
  • Fx
  • O
Type

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.

Example


<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>

Output
  1. First list item
  2. Second list item
  3. Third list item
  4. Fourth list item
  5. Fifth list item
  6. Sixth list item
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>

Output
  1. First list item
  2. Second list item
  3. Third list item
  4. Fourth list item
  5. Fifth list item
  6. Sixth list item