Set the start value of an ordered list in HTML?


Use the start attribute to set the start value of an ordered list in HTML i.e.

<ol start = " ">

Add the value of where you want to start above.

Example

You can try to run the following code to implement the start attribute −

<!DOCTYPE html>
<html>
   <head>
      <title>HTML ol Tag</title>
   </head>
   <body>
      <p>Programming Languages Rank Usage:</p>
      <ol start = "5">
         <li>Java</li>
         <li>C++</li>
         <li>C</li>
      </ol>
   </body>
</html>

Updated on: 03-Mar-2020

379 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements