How to specify a starting number for an ordered list with HTML?

Spread the love

Sometimes, we want to specify a starting number for an ordered list with HTML.

In this article, we’ll look at how to specify a starting number for an ordered list with HTML.

How to specify a starting number for an ordered list with HTML?

To specify a starting number for an ordered list with HTML, we set the start attribute.

For instance, we write

<ol start="6">
  <li>Lorem</li>
  <li>Ipsum</li>
  <li>Dolor</li>
</ol>

to set the start attribute to 6 to set 6 as the number for the first item.

Conclusion

To specify a starting number for an ordered list with HTML, we set the start attribute.

Leave a Reply

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