Description:

The <ol> tag is used for specifying an ordered list (or numbered list).

Example Code:
<ol>
  <li>Mouse</li>
  <li>Cat</li>
  <li>Dog</li>
</ol>
Result:
  1. Mouse
  2. Cat
  3. Dog
Attributes:
Attribute Definition
compact Renders the list in a more compact way.
reversed Specifies that the list order should be descending (9,8,7...)
start Specifies what number to start numbering from.
type Specifies the type of bullet.

Possible values:
  • A
  • a
  • I
  • i
  • 1
Global Attributes:

The <ol> tag also supports the Global Attributes in HTML5

Event Attributes:

The <ol> tag also supports the Event Attributes in HTML5



Last updated on 2 August 2018 By Rene Spronk

View All HTML Tags

Errors? Please help to keep this list up to date, If you find any errors, please contact us, so that we can get them fixed.