HTML MASTER CLASS /// ORDERED LISTS /// SEQUENCE & STRUCTURE /// HTML MASTER CLASS /// ORDERED LISTS /// SEQUENCE & STRUCTURE /// HTML MASTER CLASS /// ORDERED LISTS /// SEQUENCE & STRUCTURE ///

Ordered Lists

Learn to structure sequential content. Master the <ol> tag, roman numerals, and nested lists.

ordered_list.html
1 / 15
12345
🔢

Tutor:When sequence matters, like in a recipe or instructions, we use Ordered Lists. The <ol> tag stands for Ordered List. It automatically numbers the items inside it for you.


Skill Matrix

UNLOCK NODES BY MASTERING LISTS.

Concept: Ordered List

The <ol> tag marks the beginning of a numbered list. It must contain <li> elements.

System Check

What tag signifies the start of an Ordered List?


Community Holo-Net

List Challenges

ACTIVE

Create the most complex nested list structure using Roman numerals.

HTML Ordered Lists

Author

Pascual Vila

Frontend Instructor // Code Syllabus

An Ordered List (<ol>) defines a list of items where the sequence matters. The browser handles the numbering automatically, ensuring continuity even if you add or remove items.

Basic Syntax

The parent tag is <ol>. Inside, each item must be wrapped in a <li> (List Item) tag.

The Type Attribute

You can control the counter style using the type attribute:

  • type="1": Default numbers (1, 2, 3)
  • type="A": Uppercase letters (A, B, C)
  • type="a": Lowercase letters (a, b, c)
  • type="I": Uppercase Roman (I, II, III)
  • type="i": Lowercase Roman (i, ii, iii)

Start & Reversed

Use start="n" to begin counting from a specific number. Use reversed to count backwards.

View Full Transcript+

This section contains the detailed breakdown of the ordered list element. It covers the semantic difference between UL and OL, how to nest lists correctly to create outlines, and the accessibility benefits of using proper list tags over manual numbering.

HTML List Glossary

<ol>
The container tag for Ordered Lists. It signifies that the order of the items is important.
<li>
List Item tag. Used inside both Ordered and Unordered lists to define each individual point.
Type Attribute
An attribute for the <ol> tag that changes the numbering style (e.g., A, a, I, i, 1).
Start Attribute
Allows you to specify the starting number of the list. E.g., start='5' will begin counting at 5.
Reversed
A boolean attribute that makes the list numbering count backwards from the highest value.
Nesting
Placing a list inside a list item (<li>) of another list to create sub-levels.