Loading
An ordered list is used when you want to display items in a specific sequence, typically marked with numbers or letters. It is also known as a numbered list.
Ordered lists are great for showing steps, rankings or any content where order matters.

Syntax:
An ordered list begins with the <ol> tag (ordered list), and each list item is wrapped with the <li> tag (list item).
<ol>
<li>Item One</li>
<li>Item Two</li>
<li>Item Three</li>
<ol>

Example:
<!DOCTYPE html>
<html>
 <head>
  <title>Ordered List</title>
 </head>
 <body>
  <h3>Ordered List Example</h3>
  <ol>
   <li>Cat</li>
   <li>Dog</li>
   <li>Cow</li>
  </ol>
 </body>
</html>

Output:
Uploaded Image

Customizing the Ordered List with the type Attribute
HTML lets you change the numbering format using the type attribute in the <ol> tag.

Type ValueDescriptionOutput Example
1Default numbering (1, 2, 3...)1, 2, 3
AUppercase lettersA, B, C
aLowercase lettersa, b, c
IUppercase Roman numeralsI, II, III
iLowercase Roman numeralsi, ii, iii

Examples of Different type Attributes

Example: Numbers (Default)
<ol type="1">
 <li>Cat</li>
 <li>Dog</li>
 <li>Cow</li>
</ol>

Output:
Uploaded Image

Example: Lowercase Roman Numeral
<ol type="i">
<li>Cat</li>
<li>Dog</li>
<li>Cow</li>
</ol>

Output:
Uploaded Image

Example: Uppercase Alphabets
<ol type="A">
<li>Cat</li>
<li>Dog</li>
<li>Cow</li>
</ol>

Output:
Uploaded Image

Example: Lowercase Alphabets
<ol type="a">
<li>Cat</li>
<li>Dog</li>
<li>Cow</li>
<ol>

Output:
Uploaded Image

Ordered lists improve readability, especially when steps or a sequence is important. They are widely used in tutorials, instruction pages and ranking content.

Tips
  • Ordered lists ( <ol> ) are used to display content in a specific sequence.
  • Items are added using <li>
  • You can customize the numbering format using the type attribute.