HTML Ordered List

Ordered List

The <ol> tag is defined as Ordered List.

The <ol> element represents an ordered list of items, it represents list of items by characters or numbers.

Ordered list declared using the <ol> tag and all of its list items are be written inside the <li> tag.



Try Yourself

type attribute in ordered List(<ol>)

type attribute is used to specify the type of symbols to use in the markers.

In <ol> tag, type attribute can have any one of the following values.

  1. type="1" (Default value)
  2. type="A"
  3. type="a"
  4. type="I"
  5. type="i"


Try Yourself