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: 2020-03-03T11:24:10+05:30

440 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements