Computer >> Computer tutorials >  >> Programming >> HTML

How to create an ordered list in HTML?


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.

How to create an ordered list in HTML?

Example

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

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