< All the HTML Tags >

<ol></ol>

Video Coming Soon...

  • ol

    Tag Type

    block

    Tag Category

    lists

    Defines an ordered list

    Viewed

    1

    Examples

    1

Definition:

The HTML <ol> tag is used to define an ordered list of items, where each item is represented by an <li> element.

This tag automatically numbers the list items, making it suitable for step-by-step instructions, rankings, or any content requiring a specific order. Proper use of <ol> enhances content structure and readability.

Using the `<ol>` tag effectively organizes information and improves user understanding.

Attributes:

reversed, start, type, Global attributes (e.g., class, id, style)

Accessibility:

Coming Soon…

Default ol Example:

Using the <ol> tag to create an ordered list.
<ol><li>First item</li><li>Second item</li></ol>

Default ol Result:


Coming Soon…

Community Examples:

Coming Soon…
Coming Soon…