Ordered Lists ol start reversed type
Create numbered lists and customize their sequence.
Ordered Lists ol start reversed type is a free HTML Academy lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the HTML Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
What Is an Ordered List?
An ordered list displays items where the sequence matters:
<ol>
<li>Install Node.js</li>
<li>Create project folder</li>
<li>Run npm init</li>
<li>Install dependencies</li>
</ol>The ol Element
The <ol> (ordered list) element renders list items with sequential numbers by default:
<ol>
<li>First step</li>
<li>Second step</li>
<li>Third step</li>
</ol>
<!-- Numbers are generated by the browser -->
<!-- You do not need to type 1. 2. 3. -->
<!-- Reordering items updates numbering automatically -->The start Attribute
The start attribute sets the starting number:
<p>Steps 1-3 are covered in Part One. Continuing from step 4:</p>
<ol start="4">
<li>Configure the database</li>
<li>Set environment variables</li>
<li>Run migrations</li>
</ol>
<!-- Numbers start at 4, 5, 6 -->The reversed Attribute
The reversed attribute counts down instead of up:
<!-- Top 3 countdown -->
<ol reversed>
<li>Bronze: 95 points</li>
<li>Silver: 98 points</li>
<li>Gold: 100 points</li>
</ol>
<!-- Renders: 3. Bronze... 2. Silver... 1. Gold -->
<!-- reversed is a boolean attribute — no value needed -->The type Attribute
The type attribute changes the marker style:
<ol type="1">...</ol> <!-- 1, 2, 3 (default) -->
<ol type="a">...</ol> <!-- a, b, c (lowercase letters) -->
<ol type="A">...</ol> <!-- A, B, C (uppercase letters) -->
<ol type="i">...</ol> <!-- i, ii, iii (lowercase Roman) -->
<ol type="I">...</ol> <!-- I, II, III (uppercase Roman) -->type in CSS vs HTML
Prefer CSS list-style-type over the HTML type attribute:
<!-- HTML type (still valid): -->
<ol type="A">
<li>Option A</li>
</ol>
<!-- CSS approach (separates concerns): -->
<!--
ol.lettered {
list-style-type: upper-alpha;
}
-->
<ol class="lettered">
<li>Option A</li>
</ol>value Attribute on li
Override the number of individual list items with value:
<ol>
<li>First item</li>
<li value="10">Tenth item</li> <!-- jumps to 10 -->
<li>Eleventh item</li> <!-- continues: 11 -->
</ol>Nested ol and ul
Lists can be nested — mix ordered and unordered:
<ol>
<li>
Install tools
<ul>
<li>VS Code</li>
<li>Node.js</li>
</ul>
</li>
<li>Create project</li>
<li>Write code</li>
</ol>Semantic Use Cases
Use <ol> when order is meaningful:
- Step-by-step instructions
- Ranked results (top 10 lists)
- Legal document sections
- Recipe steps
- Table of contents with numbered sections
Counter-Reset in CSS
CSS counters give you full control over list numbering style:
ol {
list-style: none;
counter-reset: step;
}
ol li {
counter-increment: step;
}
ol li::before {
content: 'Step ' counter(step) ': ';
font-weight: bold;
color: #0070f3;
}ol for Breadcrumbs
Breadcrumb navigation is semantically an ordered list:
<nav aria-label="Breadcrumb">
<ol>
<li><a href="/">Home</a></li>
<li><a href="/docs">Documentation</a></li>
<li><span aria-current="page">HTML Lists</span></li>
</ol>
</nav>Quick Check
Which attribute makes an ol count backwards?
Recap: Ordered Lists
Ordered list essentials:
<ol>— sequential list where order mattersstart— begin numbering at a custom numberreversed— count downtype— change marker: 1, a, A, i, Ivalueon<li>— override individual item number- Use CSS
list-style-typeand counters for more control
Frequently asked questions
Is the “Ordered Lists ol start reversed type” lesson free?
Yes — the full text of “Ordered Lists ol start reversed type” is free to read here on the web, and the HTML Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the HTML Academy course, upgrade to CoddyKit PRO.
What will I learn in “Ordered Lists ol start reversed type”?
Create numbered lists and customize their sequence. You practise HTML Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start HTML Academy?
No prior experience is required. HTML Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Ordered Lists ol start reversed type” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this HTML Academy lesson?
Yes. Every HTML Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Unordered Lists ul and li
- Ordered Lists ol start reversed type
- Description Lists dl dt dd
- Nested Lists and List Styling