HTML <ol> tag

You are Here:

HTML <ol> tag

The <ol> tag defines an ordered list of items.

The <ol> element's list items typically rendered as a numbered list.

Example

HTML Online Editor
<!DOCTYPE html> <html> <body> <ol> <li>Brenden</li> <li>Eich</li> </ol> </body> </html>

Attributes

The following are the attributes of <ol> tag. Also try Global attributes.

AttributeValueExplanation
reversed-Specifies that the items of the list are specified in reversed order.
startnumberSpecifies the start value for numbering the individual list items.
type
  • a
  • A
  • 1
Specifies the different types of attribute can be used in the list.

Deprecated Attributes

The following attribute should not be used in any case.

AttributeValueExplanation
compact-Specifies that the list items should render in smaller size than normal.

Reminder

Hi Developers, we almost covered 99.5% of HTML Tutorials with examples for quick and easy learning.

We are working to cover every Single Concept in HTML.

Please do google search for:

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author