1. Home
  2. Html
  3. Ordered list

Ordered list example. Use "type" attribute for different list item prefixes; type="1" - numbers; type="A" - uppercase letters; type="a" - lowercase letters; type="I" - uppercase roman numbers; type="i" - lowercase roman numbers.

#html#list
<ol>
    <li>Blue</li>
    <li>Red</li>
    <li>Yellow</li>
    <li>Green</li>
</ol>

<ol type="I">
    <li>Uppercase roman style number list item 1</li>
    <li>Uppercase roman style number list item 2</li>
    <li>Uppercase roman style number list item 3</li>
</ol>
Output:
  1. Blue
  2. Red
  3. Yellow
  4. Green
  1. Uppercase roman style number list item 1
  2. Uppercase roman style number list item 2
  3. Uppercase roman style number list item 3
copy
Full Html cheatsheet