How to create an ordered list in HTML?

HTMLWeb DevelopmentFront End Technology

To create ordered list in HTML, use the <ol> tag. Ordered list starts with the <ol> tag. The list item starts with the <li> tag and will be marked as numbers, letters and roman numbers. The default is numbers.

Example

You can try to run the following code to use an ordered list in HTML −

Live Demo

<!DOCTYPE html>
<html>
   <body>
      <h1>Developed Countries</h1>
      <p>The list of developed countries :</p>
      <ol>
         <li>US</li>
         <li>Australia</li>
         <li>New Zealand</li>
      </ol>
   </body>
</html>
raja
Published on 07-Feb-2018 13:15:13
Advertisements