How to Set the Start Value of an Ordered List in HTML?

To start the numbering of an order list (<ol></ol>) from a specific number, you can simply use the start attribute on the list like so:

<ol start="10">
    <li>Item 10</li>
    <li>Item 11</li>
    <li>Item 12</li>
    <!-- ... -->
</ol>

Please note that the value of the start attribute is always an integer, even when the list numbering type is letters or roman numbers. For example, to start counting list items from the letter "d" or the roman number "iv", you would use start="4".


This post was published by Daniyal Hamid. Daniyal currently works as the Head of Engineering in Germany and has 20+ years of experience in software engineering, design and marketing. Please show your love and support by sharing this post.