Challenge - 5 Problems
List Layout Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Common use cases for lists in web layouts
Which of the following is NOT a typical use case for lists (
- ,
- ,
- ) in web page layouts?
Attempts:
2 left
💡 Hint
Think about what lists are good for versus what layout tools like CSS Grid do.
✗ Incorrect
Lists are great for grouping related items like menus, steps, or features. Grids are used for layout, not lists.
📝 Syntax
intermediate1:30remaining
Correct HTML list syntax for a navigation menu
Which option shows the correct HTML structure for a navigation menu using a list?
Attempts:
2 left
💡 Hint
Navigation menus usually use unordered lists with links inside list items.
✗ Incorrect
Option A uses <ul> with <li> and <a> tags correctly for navigation.
❓ rendering
advanced2:00remaining
Visual result of nested lists in layout
What will the browser display for this HTML snippet?
HTML
<ul> <li>Fruits <ul> <li>Apple</li> <li>Banana</li> </ul> </li> <li>Vegetables</li> </ul>
Attempts:
2 left
💡 Hint
Think about how nested unordered lists render by default.
✗ Incorrect
Nested <ul> creates a sub-list with bullets inside the parent list item.
❓ selector
advanced1:30remaining
CSS selector to style only top-level list items
Which CSS selector will style only the top-level list items in a nested list layout?
Attempts:
2 left
💡 Hint
Use the child combinator to select direct children only.
✗ Incorrect
The selector 'ul > li' targets only list items directly inside the first ul, not nested ones.
❓ accessibility
expert2:00remaining
Improving accessibility of list-based navigation
Which practice improves accessibility for a list-based navigation menu?
Attempts:
2 left
💡 Hint
Semantic HTML and ARIA roles help screen readers understand navigation.
✗ Incorrect
Using semantic lists with role="navigation" helps assistive technologies identify the menu properly.