A description list uses <dl> as the container, <dt> for terms, and <dd> for descriptions.
Click to reveal answer
beginner
How do you group terms and their descriptions in HTML?
You place each term inside a <dt> tag followed by its description inside a <dd> tag, all inside a <dl> container.
Click to reveal answer
intermediate
Can a description list have multiple descriptions for one term?
Yes, you can have multiple <dd> elements after a single <dt> to provide several descriptions for one term.
Click to reveal answer
beginner
What is a real-life example of using a description list?
A glossary or a list of questions and answers can use description lists to pair terms or questions (<dt>) with their definitions or answers (<dd>).
Click to reveal answer
intermediate
Why use description lists instead of paragraphs or lists for terms and definitions?
Description lists provide semantic meaning to the browser and assistive technologies, making content clearer and more accessible than using plain paragraphs or unordered lists.
Click to reveal answer
Which tag is used to define a term in a description list?
A<dt>
B<dd>
C<dl>
D<li>
✗ Incorrect
The <dt> tag defines a term in a description list.
What does the <dd> tag represent in a description list?
AA term
BA description
CThe whole list
DA list item
✗ Incorrect
The <dd> tag contains the description or definition of the term.
Which element wraps the entire description list?
A<dd>
B<dt>
C<dl>
D<list>
✗ Incorrect
The <dl> element wraps the whole description list.
Can you have multiple <dd> tags for one <dt>?
ANo, only one description per term
BOnly if using CSS
COnly if inside another list
DYes, multiple descriptions are allowed
✗ Incorrect
Multiple <dd> tags can follow one <dt> to provide several descriptions.
Which of these is a good use case for a description list?
AGlossary of terms
BNavigation menu
CSimple bullet list
DPage footer
✗ Incorrect
Glossaries are a perfect example where description lists are useful.
Explain how to create a description list in HTML and why it is useful.
Think about how terms and their explanations are paired in a list.
You got /5 concepts.
Describe a real-life scenario where you would use a description list instead of other list types.
Consider situations where you explain words or concepts.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of the <dl> element in HTML?
easy
A. To add a paragraph of text
B. To create a numbered list of items
C. To create a table with rows and columns
D. To create a description list that pairs terms with their descriptions
Solution
Step 1: Understand the role of <dl>
The <dl> tag is used to group terms and their descriptions in a list format.
Step 2: Compare with other list types
Unlike ordered (<ol>) or unordered (<ul>) lists, <dl> is specifically for description lists.
Final Answer:
To create a description list that pairs terms with their descriptions -> Option D