How to Set the Start Number in an HTML Ordered List

There are cases when we use HTML ordered list in two separate blocks and we need to them to have a continuous number sequence. This tip would come in handy in that situation.

Simply use the start attribute in the ordered list and set its value to the number you wish it to start with. For example:



<ol start="8">
    <li>I'm the 8th</li>
    <li>I'm the 9th</li>
    <li>I'm the 10th</li>
</ol>


Then the result should be:

  1. I’m the 8th
  2. I’m the 9th
  3. I’m the 10th

The start attribute was deprecated in HTML 4.01, but it made a come back in HTML 5.0, rightfully so!

Share this Post

Leave a Reply

Your email address will not be published. Required fields are marked *