Write a description list with one term and its definition.
Acceptance criteria
- 1.Write a description list with one term and its definition.
HTML Tutorial · HTML Tags
These 10 tasks go with the HTML <dl> Tag 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: “The tag in HTML defines a description list (also known as a definition list). Each description list contains one or more pairs of terms ( ) and definitions ( ) . It is commonly used to display glossaries, FAQs, or metadata in a structured way.” .
1.Define a termexercise · easy · 10 min
Write a description list with one term and its definition.
Passes when: Write a description list with one term and its definition.
2.Two termsexercise · easy · 10 min · practice plan
Define two terms in one list.
Passes when: Define two terms in one list.
3.Two definitions for one termexercise · easy · 10 min · practice plan
Give a single term two descriptions.
Passes when: Give a single term two descriptions.
4.A glossary headingexercise · easy · 10 min · practice plan
Add a heading above a description list.
Passes when: Add a heading above a description list.
5.Metadata pairsexercise · medium · 10 min · practice plan
Use a description list for name and value pairs.
Passes when: Use a description list for name and value pairs.
6.Fix the bullet list used for definitionsbug fix · easy · 8 min
Term and definition pairs need a description list.
Passes when: Term and definition pairs need a description list.
7.Fix the missing second definitionbug fix · easy · 8 min · practice plan
The second term has no description.
Passes when: The second term has no description.
8.Fix the term with only one meaningbug fix · easy · 8 min · practice plan
This word has a second sense that is missing.
Passes when: This word has a second sense that is missing.
9.Fix the term marked as a definitionbug fix · easy · 8 min · practice plan
The word being defined is dt.
Passes when: The word being defined is dt.
10.Fix the pairs written as paragraphsbug fix · easy · 8 min · practice plan
Name and value pairs belong in a description list.
Passes when: Name and value pairs belong in a description list.
Between them these tasks cover Description lists, dt and dd and Glossaries.
Looking for a different chapter? See every practice set, or switch to the interview theory questions.