HTML

Ordered List


Ordered lists are great for presenting information in a specific sequence. Each item in the list is numbered automatically. Here’s how you can use ordered lists.

 

Basic Ordered List

An ordered list starts with the <ol> tag and each list item is wrapped in an <li> tag. Here’s an example of a basic ordered list:

<ol>
  <li>First step</li>
  <li>Second step</li>
  <li>Third step</li>
</ol>

 

Example 

<h2>Write the 5 student name </h2>
<ol>
  <li>Rohitk kumar</li>
  <li>Altaf kumar</li>
  <li>Ajay kumar</li>
  <li>Danish kumar</li>
  <li>Raja kumar</li>
</ol>