Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create an unordered list.
HTML
[1]
<li>Apple</li>
<li>Banana</li>
</ul> Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
- instead of
- for unordered lists.
Forgetting to open the list with
- .
✗ Incorrect
The
- tag starts an unordered list. Here, it is the correct opening tag.
2fill in blank
mediumComplete the code to add a list item inside the unordered list.
HTML
<ul>
[1]Orange</li>
</ul> Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
- or
- for list items.
- instead of
Forgetting to close the list item with .
✗ Incorrect
Each item in a list uses the tag inside the
- or
- tags.
3fill in blank
hardFix the error in the unordered list code by completing the blank.
HTML
<ul>
<li>Milk</li>
[1]Bread</li>
</ul> Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
- or
- .
- inside the list instead of
Missing the opening tag for the list item.
✗ Incorrect
Each list item must start with to be valid inside a list.
4fill in blank
hardFill both blanks to create a nested unordered list inside a list item.
HTML
<ul>
<li>Fruits
[1]
<li>Apple</li>
<li>Banana</li>
[2]
</li>
</ul> Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using or instead of
- or
Not closing the nested list properly.
✗ Incorrect
Nested lists use
- to start and
5fill in blank
hardFill all three blanks to create an unordered list with three items.
HTML
<ul> [1]Apple[2] [3]Banana</li> <li>Cherry</li> </ul>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to close list items with .
Using incorrect tags like
- inside list items.
✗ Incorrect
Each list item starts with and ends with . The list ends with but that is already present.