Ordered lists (ol and li)
An HTML element that creates an ordered (numbered) list. Each item must be wrapped in an <li> and the browser numbers them automatically.
What it does: The browser renders 1. Step one, 2. Step two. Inserting a new item renumbers everything automatically. Recipe steps must happen in order, so <ol> is the semantically correct choice over <ul>. <ol> creates an ordered (numbered) list. <ul> creates an unordered (bulleted) list. Each item must be wrapped in <li>...</li> - the same element used in unordered lists. There is no <step> element. The browser numbers <ol> items automatically. Typing numbers manually means they will not update when items are added or removed. HTML tag names must be lowercase. <OL> is non-standard - use <ol>. Direct children of <ol> must be <li> elements. Other content belongs inside the <li> wrappers.
Common mistakes: HTML tag names must be lowercase. <OL> should be written as <ol>. The first list item is missing its closing tag. It should be <li>Crack eggs</li> with </li> at the end.
Free printable worksheet with full answer key — or add this module to a journey and assign it to your class.
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
<ol>Fill in the Blanks
Spot the Error
Create a free class, add this module to a journey, and track who's stuck.
Create a free teacher account →No credit card. No setup fee. Make a class and invite students in under three minutes.
Practice this topic interactively, track progress, and unlock badges.
Start Learning Free →