<ol>

<li>List Item 1</li>

<li>List Item 2</li>

<li>List Item 3</li>

<li>List Item 4</li>

<li>List Item 5</li>

</ol>

Notice how once again, we don’t specify the numbering for each list item, but our browser displays the numbers by default.

OL attributes

Type attribute

We can modify how our numbering scheme is displayed by using the type attribute on the opening <ol> tag. We can use the following values to alter the appearance of the numbers:

  1. type=“1” – list items will be ordered with numbers (this is the default behaviour).
  2. type=“A” – list items will be ordered with uppercase letters.
  3. type=“a” – list items will be ordered with lowercase letters.
  4. type=“I” – list items will be ordered with uppercase roman numerals.
  5. type=“i” – list items will be ordered with lowercase roman numerals.

Start attribute

We can also modify the number from which you would like the ordering to start from by using the ‘start’ attribute as seen below.