HTML | <ol> start Attribute

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.

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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>

chevron_right


Output:

Supported Browsers:

  • Google Chrome
  • Firefox
  • Edge
  • Opera
  • Apple Safari


My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.