HTML ol Tag start Attribute Tutorial

In this section, we will learn what the start attribute is and how to use it.

What is start Attribute in HTML <ol> Tag?

When using the <ol> element to create a list in an HTML document, by default, the items in the list are marked with numbers and the starting number is 1.

But with the help of the `start` attribute, we can change the start number to any other value that is suitable for a list.

For example, if we set the value to 10, then the first item gets the value 10 as its mark and the rest of items will follow from this value. So the second item will have the value 11 and third one will take the value 12 and so on…

HTML start Attribute in <ol> Tag Syntax:

<ol start = “value”> </ol>

<ol> Tag start Attribute Values

The value we set for the start attribute is always a number. This is true even if the numbering type is alphabetical characters.

So if, for example, the numbering type is alphabetical and we want to start with character “c”, then the value we set for this attribute would be 3.

Example: using start attribute in HTML <ol> tag

See the Pen using start attribute in HTML <ol> tag by Omid Dehghan (@odehghan) on CodePen.

Facebook
Twitter
Pinterest
LinkedIn

Top Technologies