Add a ul with three items.
Acceptance criteria
- 1.Add a ul with three items.
HTML Tutorial · HTML Lists and Tables
These 10 tasks go with the HTML Lists chapter. 5 of them ask you to build something small from scratch; 5 give you code that is already broken and ask you to work out why. Set aside about 90 minutes for the whole set, though you can do them in any order.
Nothing here is marked by a person. When you press Submit, the editor checks your code against the points listed under each task and tells you straight away what passed and what didn't (you need a free account to submit). If you get stuck, there are hints, and a worked solution once you've had a go. The first 2 tasks are free; the rest are part of the practice plan.
If it's been a while since you read the chapter, here is how it starts: “HTML Lists allow you to organize content in a structured way . They are used for menus, steps, bullet points, or any grouped information. HTML provides three main types of lists : unordered, ordered, and description lists.” .
1.Build an unordered listexercise · easy · 10 min
Add a ul with three items.
Passes when: Add a ul with three items.
2.Build an ordered listexercise · easy · 10 min · practice plan
Add an ol with three steps.
Passes when: Add an ol with three steps.
3.Nest a sublistexercise · easy · 10 min · practice plan
Add a ul where one item contains its own nested ul.
Passes when: Add a ul where one item contains its own nested ul.
4.Build a description listexercise · easy · 10 min · practice plan
Add a dl with one dt and one dd.
Passes when: Add a dl with one dt and one dd.
5.Start an ordered list at fiveexercise · medium · 10 min · practice plan
Use the start attribute so numbering begins at 5.
Passes when: Use the start attribute so numbering begins at 5.
6.Fix the list items with no listbug fix · easy · 8 min
The items float loose without a parent list.
Passes when: The items float loose without a parent list.
7.Fix the paragraphs pretending to be a listbug fix · easy · 8 min · practice plan
Three paragraphs should be a real list.
Passes when: Three paragraphs should be a real list.
8.Fix the ordered list used for unordered contentbug fix · easy · 8 min · practice plan
These items have no sequence, so use a ul.
Passes when: These items have no sequence, so use a ul.
9.Fix the sublist placed outside its itembug fix · easy · 8 min · practice plan
The nested list should sit inside the li.
Passes when: The nested list should sit inside the li.
10.Fix the description list pairingbug fix · easy · 8 min · practice plan
The definition uses a dt where a dd belongs.
Passes when: The definition uses a dt where a dd belongs.
Between them these tasks cover Ordered and unordered lists, Description lists and Nesting.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.