Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.
This Ordered lists (ol and li) worksheet is part of the HTML and CSS Journey journey. Print it as a booklet?
Shade in the A or B circle for each question.
Draw a line connecting each item on the left to its match on the right.
| Left column | Right column | |
|---|---|---|
| 1<ol> <li>Mix flour</li> <li>Add eggs</li> </ol> | ADirect children of <ol> must be <li>, not <p> - replace <p>Step one</p> with <li>Step one</li> | |
| 2<ol> <li>Bronze</li> <li>Silver</li> <li>Gold</li> </ol> | B<ol> <li>Preheat oven</li> <li>Bake cake</li> </ol> | |
| 3<ol> automatically numbers its items - the numbers update when items change | C<ol> <li>Step one</li> <li>Step two</li> </ol> | |
| 4Use <ol> when order matters and <ul> when it does not | DThe first <li> is missing its closing tag - it should be <li>First step</li> | |
| 5<ol> <li>First step<li> <li>Second step</li> </ol> | EA ranking displayed as 1, 2, 3 - ordered lists are used when sequence or position matters | |
| 6<ol> <p>Step one</p> <li>Step two</li> </ol> | FA numbered ordered list - the browser displays 1. Mix flour, 2. Add eggs automatically |
Complete each line of code by filling in the missing parts.
Shade in the letter of the line that contains an error.
<ol> — An HTML element that creates an ordered (numbered) list. Each item must be wrapped in an <li> and the browser numbers them automatically.<ol>
<li>Preheat oven</li>
<li>Mix batter</li>
</ol><ol>
<li>Crack eggs</li>
<li>Whisk</li>
</ol><ol>
<li>Wash hands</li>
<li>Cook</li>
</ol><ol>
<li>Start</li>
<li>Finish</li>
</ol><h2>Steps</h2>
<ol>
<li>Mix</li>
<li>Bake</li>
</ol>