Skip to content
Related Articles

Related Articles

HTML | <ol> start Attribute

View Discussion
Improve Article
Save Article
  • Last Updated : 21 Jun, 2022
View Discussion
Improve Article
Save Article

The HTML <ol> start Attribute is used to specify the start value for numbering the individual list item of the ordered list. 

Syntax: 

<ol start="number"> 

Attribute Values: It contains the numeric value which specifies the start value of the first list item of the Ordered list. 

Example: This Example illustrates the use of start attribute in the <ol> element. 

html




<!DOCTYPE html>
<html>
 
<head>
    <title>HTML ol start Attribute</title>
    <style>
        h1,
        h2 {
            text-align: center;
        }
    </style>
</head>
 
<body>
    <h1>GeeksForGeeks</h1>
    <h2 style="color: green;">
            HTML ol start Attribute
        </h2>
 
    <p>Sorting Algorithms</p>
 
    <ol start="7">
        <li>Bubble sort</li>
        <li>Merge sort</li>
        <li>Quick sort</li>
    </ol>
</body>
 
</html>


Output:

  

Supported Browsers:

  • Google Chrome 
  • Edge version 12 and above
  • Firefox version 1 and above
  • Internet Explorer 
  • Opera 
  • Safari 
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!