Challenge - 5 Problems
Unordered 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 unordered list?
Look at this HTML code for an unordered list. What will you see in the browser?
HTML
<ul> <li>Apple</li> <li>Banana</li> <li>Cherry</li> </ul>
Attempts:
2 left
💡 Hint
Remember, <ul> creates a bulleted list and <li> defines each item.
✗ Incorrect
The <ul> tag creates a bulleted list. Each <li> inside it becomes a bullet point on its own line.
❓ selector
intermediate2:00remaining
Which CSS selector targets all items in an unordered list?
You want to style all list items inside any unordered list. Which CSS selector should you use?
Attempts:
2 left
💡 Hint
Think about selecting list items inside unordered lists, not the other way around.
✗ Incorrect
The selector 'ul li' means all <li> elements inside any <ul>. This targets all list items in unordered lists.
🧠 Conceptual
advanced2:00remaining
What is the default marker style for an unordered list in HTML?
When you create an unordered list without any CSS, what kind of bullet marker appears by default?
Attempts:
2 left
💡 Hint
Think about the common bullet style you see in browsers by default.
✗ Incorrect
By default, browsers show unordered list items with a solid circle bullet marker.
❓ layout
advanced2:00remaining
How to remove bullets and indent from an unordered list using CSS?
You want an unordered list with no bullet points and no indentation. Which CSS rules achieve this?
Attempts:
2 left
💡 Hint
The property to remove bullets is list-style-type, and indentation is controlled by padding or margin.
✗ Incorrect
Setting list-style-type to none removes bullets. Padding-left and margin-left set to zero remove indentation.
❓ accessibility
expert2:00remaining
Which attribute improves accessibility for an unordered list used as a navigation menu?
You have an unordered list used as a navigation menu. Which attribute should you add to improve screen reader accessibility?
HTML
<nav> <ul> <li><a href="#home">Home</a></li> <li><a href="#about">About</a></li> <li><a href="#contact">Contact</a></li> </ul> </nav>
Attempts:
2 left
💡 Hint
Think about labeling the navigation region for screen readers.
✗ Incorrect
Adding aria-label to the <nav> element helps screen readers understand the purpose of the navigation region.