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
type Specifies the type of bullet.
Possible values:
  • A
  • a
  • I
  • i
  • 1
start Specifies what number to start numbering from.
compact Renders the list in a more compact way.
Global Attributes:

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

Event Attributes:

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