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:
- I’m the 8th
- I’m the 9th
- 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