Students make bulleted and numbered lists, keep every item inside its list, and put a list inside an item.
Load these into Waypoints Prepare: choose Load URL and paste the copied address, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.
Predict and Run 10 min · Investigate 10 min · Modify 10 min · Mix it up 5 min · Make 10 min
Read the unit primer "Lists, links and pictures in 5 minutes" first, then do the Make task yourself.
The idea: a list is a box of items. <ul> gives bullets, <ol> gives numbers, and every <li> must sit inside one. An item is a box too, so another list can go inside it, which is nesting from the second lesson.
Turn on Boxes in the playground: it shows each item inside its list.
<ul> and <li> tags make the bullets, not the line breaks. Ask the pair that voted for one line which lesson taught them that.<ul> to <ol> together, then add an item. The browser numbers the list itself, so students never type the numbers.1. typed by hand; the browser does the counting. The lost item is one <li> after </ol>: ask which tag closed the list.li, including the ones inside the inner list. Ask a student to point at each of the five.On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.
Write the steps for making toast as an ordered list. Swap with a partner and add a missing step in the right place.
Point out that the numbers move by themselves when a step is added. Ask what would happen if the numbers were typed by hand.
Keeping every li inside its list. Turn on Boxes and ask which box each item sits in, rather than moving the tag for them.
| What you will see | A question to ask | The fix |
|---|---|---|
| An item has a dot, or a different number from the others, and sits further left. | Is this <li> between the list's opening and closing tags? | Move the closing </ul> or </ol> below the last item. |
| Numbers typed in the items show twice, as in 1. 1. Sprint. | Who does the counting in an ordered list? | Remove the typed numbers. Write only the words in each <li>, and the <ol> adds the numbers. |
| The small list shows after the item, not under it. | Does the small list start before the </li> of its item? | Move the </li> below the small list's </ul>. |
<ol>
<li>Sprint</li>
<li>Relay</li>
<li>Long jump</li>
</ol>
One possible solution for each task. Other correct programs are fine.
<h1>Sports day</h1>
<h2>Events</h2>
<ol>
<li>Sprint</li>
<li>Relay</li>
<li>Long jump</li>
</ol>
<p>Races start at 9 am.</p>
<h1>Sports day</h1>
<h2>Events</h2>
<ol>
<li>Sprint</li>
<li>Relay</li>
<li>Long jump</li>
</ol>
<h2>What to bring</h2>
<ul>
<li>Hat</li>
<li>Water</li>
</ul>
<p>Races start at 9 am.</p>
<h1>Sports day</h1>
<h2>Events</h2>
<ol>
<li>Sprint</li>
<li>Relay
<ul>
<li>Owls</li>
<li>Hawks</li>
</ul>
</li>
<li>Long jump</li>
</ol>
<h2>What to bring</h2>
<ul>
<li>Hat</li>
<li>Water</li>
</ul>
<p>Races start at 9 am.</p>
<h1>My top 5 books</h1>
<ol>
<li>The Hobbit
<ul>
<li>A dragon</li>
<li>A map</li>
</ul>
</li>
<li>Wonder</li>
<li>Holes</li>
<li>Matilda</li>
<li>Hatchet</li>
</ol>
Stretch: Put a list inside a list inside a list. What does the browser do to the bullets at each level? Then write an li rule that makes every item a different colour from its heading.
Support: Give students the Modify starter and do the first task together. Point at Boxes to show the new item's box inside the list.
A student types 1. 2. 3. at the start of each item in an <ol>. What does the page show, and what should they do?
Each item shows two numbers, the one the browser added and the one typed. They should delete the typed numbers: the <ol> counts for them.
Next lesson makes the items in a list into links, with a new idea: an attribute inside the opening tag. Class idea: write the steps to make toast as an ordered list, then swap and follow a partner's list.