Horje
How to create HTML Control List Counting

By default, an ordered list will start counting from 1. If you want to start counting from a specified number, you can use the start attribute:


Full Example of HTML Control List Counting

By default, an ordered list will start counting from 1. Use the start attribute to start counting from a specified number:
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>
<h2>The start attribute</h2>
<p>By default, an ordered list will start counting from 1. Use the start attribute to start counting from a specified number:</p>
<ol start="50"> <li>Coffee</li> <li>Tea</li> <li>Milk</li>
</ol>
<ol type="I" start="50"> <li>Coffee</li> <li>Tea</li> <li>Milk</li>
</ol>
</body>
</html>

Output should be:

Full Example of HTML Control List Counting





Category :
Web Tutorial
Sub Category :
HTML Lists
Uploaded by :
Admin


Read Article
https://horje.com/learn/1434/reference