🌟 Join our Telegram group for exclusive updates! Join Now Get Involved

HTML Ordered List

HTML Ordered List

An ordered list is a list of items that are arranged in a specific, sequential order. Each item in the list is usually numbered to indicate its position in the sequence. Ordered lists are commonly used when the sequence of the items is important, such as in step-by-step instructions or rankings.

Syntax:

        <ol>
  <li>Mango</li>
  <li>Orange</li>
  <li>Litchi</li>
</ol>
    

Output:

  1. Mango
  2. Orange
  3. Litchi

Setting the 'type' Attribute:

The type attribute specifies the style of numbering. You have several options:

  1. Pen
  2. Pencil

Output:

  1. Pen
  2. Pencil

Setting the 'start' Attribute:

The start attribute specifies the starting number for the list.

        <ol type="A" start="3">
  <li>Pen</li>
  <li>Pencil</li>
</ol>
    

Output:

  1. Pen
  2. Pencil

Cookies Consent

This website uses cookies to ensure you get the best experience on our website.

Cookies Policy

We employ the use of cookies. By accessing BYTEFOXD9, you agreed to use cookies in agreement with the BYTEFOXD9's Privacy Policy.

Most interactive websites use cookies to let us retrieve the user’s details for each visit. Cookies are used by our website to enable the functionality of certain areas to make it easier for people visiting our website. Some of our affiliate/advertising partners may also use cookies.