0
0
Bootsrapmarkup~20 mins

List styles (unstyled, inline) in Bootsrap - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Bootstrap List Styles Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
rendering
intermediate
2: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>
AA horizontal list with items displayed side by side without bullet points.
BA horizontal list with items displayed side by side with bullet points.
CA vertical list with bullet points before each fruit name.
DA vertical list with no bullet points and default spacing between items.
Attempts:
2 left
💡 Hint
The class 'list-unstyled' removes the default bullet points and spacing.
rendering
intermediate
2: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>
AThe list items appear vertically stacked without bullet points.
BThe list items appear horizontally side by side without bullet points.
CThe list items appear horizontally side by side with bullet points.
DThe list items appear vertically stacked with bullet points.
Attempts:
2 left
💡 Hint
The 'list-inline' class makes list items display inline without bullets.
selector
advanced
2: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?
A.list-unstyled { display: flex; flex-direction: row; }
B.list-unstyled li { display: inline; }
C.list-unstyled { list-style-type: none; padding-left: 0; }
D.list-unstyled li { text-decoration: none; }
Attempts:
2 left
💡 Hint
Removing bullet points involves the 'list-style-type' property.
layout
advanced
2: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?
Adisplay: inline-block;
Bdisplay: block;
Cdisplay: flex;
Ddisplay: grid;
Attempts:
2 left
💡 Hint
Inline items need to flow horizontally but keep block features like padding.
accessibility
expert
2: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?
Arole="navigation"
Brole="menu"
Crole="list"
Drole="listitem"
Attempts:
2 left
💡 Hint
Navigation menus should have a role that indicates their purpose to screen readers.