Challenge - 5 Problems
Description List Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediate2:00remaining
What is the visual output of this description list?
Look at the HTML code below. What will the browser show visually?
HTML
<dl> <dt>HTML</dt> <dd>HyperText Markup Language</dd> <dt>CSS</dt> <dd>Cascading Style Sheets</dd> </dl>
Attempts:
2 left
💡 Hint
Description lists show terms and their descriptions with indentation.
✗ Incorrect
The
- tag creates a description list. Inside,
- defines terms, shown bold by default, and
- defines descriptions, indented below each term.
📝 Syntax
intermediate2:00remaining
Which option fixes the invalid description list syntax?
This code has a mistake. Which option corrects it so the description list is valid?
HTML
<dl> <dt>JavaScript <dd>A programming language <dt>Python</dt> <dd>A scripting language</dd> </dl>
Attempts:
2 left
💡 Hint
Each and must be properly closed with matching tags.
✗ Incorrect
In HTML, every and must have opening and closing tags. Option A fixes the missing closing tags for the first and .
❓ selector
advanced2:00remaining
Which CSS selector targets only the description terms in a description list?
You want to style only the terms (not descriptions) inside a
- . Which CSS selector should you use?
Attempts:
2 left
💡 Hint
Terms are inside tags directly under
- .
✗ Incorrect
The selector 'dl > dt' selects all elements that are direct children of
- , which are the description terms.
❓ layout
advanced2:00remaining
How to align description terms and descriptions side by side?
You want the terms on the left and their descriptions on the right in one row each. Which CSS layout approach works best?
Attempts:
2 left
💡 Hint
Modern CSS layout methods like Grid help align items in columns.
✗ Incorrect
CSS Grid can create two columns inside
- , placing
- in the first and
- in the second column, aligning them side by side cleanly.
❓ accessibility
expert2:00remaining
What is the best ARIA role to improve accessibility for a description list?
To help screen readers understand a description list, which ARIA role should you add to the
- element?
Attempts:
2 left
💡 Hint
Native HTML elements often have built-in accessibility.
✗ Incorrect
The
- element is natively recognized by screen readers as a description list. Adding ARIA roles like 'list' can confuse assistive tech. It's best to rely on native semantics.