Command Palette

Search for a command to run...

Hectal
Phase 1: HTML Basics: Elements and Text
HTML · Exercise 2 of 5 PreviousNext
Beginner

A recipe with nested lists

Under Ingredients, add a bulleted list of at least three ingredients (water, milk, tea leaves, sugar).

Under Steps, add a numbered list of at least three steps. The second step, Add the spices, has two sub-steps: Crush the ginger and Add the cardamom. Put them in a list nested inside that step.

Remember: lists may only have <li> children.

What Check tests

  1. There is a bulleted list with at least 3 ingredients
  2. There is a numbered list with at least 3 steps
  3. A step has a list nested inside its <li>
  4. The sub-steps mention the ginger and the cardamom
  5. Every list only has <li> children

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.