Challenge - 5 Problems
Bootstrap List Styles 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 Bootstrap list?
Given the following HTML code using Bootstrap classes, what will the list look like when rendered in a browser?
Bootsrap
<ul class="list-unstyled"> <li>Apple</li> <li>Banana</li> <li>Cherry</li> </ul>
Attempts:
2 left
💡 Hint
The class 'list-unstyled' removes the default bullet points and spacing.
✗ Incorrect
The 'list-unstyled' class in Bootstrap removes the default bullet points and left padding, so the list items appear vertically stacked but without bullets.
❓ rendering
intermediate2:00remaining
How does this Bootstrap inline list render?
Look at this Bootstrap list code. What is the visual arrangement of the list items?
Bootsrap
<ul class="list-inline"> <li class="list-inline-item">Home</li> <li class="list-inline-item">About</li> <li class="list-inline-item">Contact</li> </ul>
Attempts:
2 left
💡 Hint
The 'list-inline' class makes list items display inline without bullets.
✗ Incorrect
Bootstrap's 'list-inline' class combined with 'list-inline-item' makes list items display horizontally in a row without bullet points.
❓ selector
advanced2:00remaining
Which CSS selector does Bootstrap use to remove bullet points in 'list-unstyled'?
Bootstrap's 'list-unstyled' class removes bullet points from lists. Which CSS property and selector combination achieves this effect?
Attempts:
2 left
💡 Hint
Removing bullet points involves the 'list-style-type' property.
✗ Incorrect
The 'list-unstyled' class sets 'list-style-type' to 'none' and removes left padding to hide bullets and align the list flush left.
❓ layout
advanced2:00remaining
What layout behavior does 'list-inline-item' enforce on list items?
In Bootstrap, what CSS display property does the 'list-inline-item' class apply to list items?
Attempts:
2 left
💡 Hint
Inline items need to flow horizontally but keep block features like padding.
✗ Incorrect
'list-inline-item' uses 'display: inline-block' so items line up horizontally but can have width, height, and padding.
❓ accessibility
expert2:00remaining
How to improve accessibility for inline navigation lists?
You have a Bootstrap inline list used as a navigation menu. Which ARIA role should you add to the
- element to improve accessibility?
Attempts:
2 left
💡 Hint
Navigation menus should have a role that indicates their purpose to screen readers.
✗ Incorrect
Adding role="navigation" to the
- helps screen readers identify the list as a navigation menu, improving accessibility.