By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

HTML Ol Tag

Reference on the HTML Ol Tag. Including its useful example, and a list of the allowed attributes.

Edited: 2014-12-28 06:26

The Ol element of HTML is used to create ordered lists, that are numbered when displayed.

Lists are useful to display a large number of links in a predefined order. Its recommended for accessibility reasons, that you use lists for website navigation, and in places where you have many links.

There is no difference between ol and ul, other than the way they are rendered by default. The order of the list items will remain the same, while the ul, typically, will be represented by dots instead of numbers.

Attributes

Attribute:Value:Description:
AttributesOther AttributesCommon, I18n, Event

HTML Ol Example

<ol>
 <li>List Item<li>
 <li>List Item<li>
 <li>List Item<li>
</ol>