Challenge - 5 Problems
Bootstrap Card Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Why use cards in Bootstrap?
Which of the following best explains why cards are used to organize content in Bootstrap?
Attempts:
2 left
💡 Hint
Think about how cards help users see related info clearly.
✗ Incorrect
Cards create distinct sections that group related content visually. This helps users quickly find and understand information.
📝 Syntax
intermediate2:00remaining
Bootstrap card structure syntax
Which option shows the correct basic HTML structure for a Bootstrap card?
Attempts:
2 left
💡 Hint
Bootstrap cards use div elements with specific classes.
✗ Incorrect
The correct structure uses a div with class card wrapping a div with class card-body.
❓ rendering
advanced2:30remaining
Visual output of nested Bootstrap cards
What will the user see when this Bootstrap code runs in a browser?
Bootsrap
<div class="card" style="width: 18rem;"><div class="card-body"><h5 class="card-title">Outer Card</h5><div class="card" style="margin-top: 1rem;"><div class="card-body"><p>Inner Card Content</p></div></div></div></div>
Attempts:
2 left
💡 Hint
Think about how nested divs with card classes display visually.
✗ Incorrect
The outer card contains the inner card as a smaller box inside it, showing nested content visually separated.
❓ selector
advanced2:00remaining
CSS selector for card body styling
Which CSS selector correctly targets only the card body sections inside Bootstrap cards?
Attempts:
2 left
💡 Hint
Look for a selector that selects elements with class 'card-body' inside elements with class 'card'.
✗ Incorrect
The selector .card .card-body selects any element with class card-body inside an element with class card.
❓ accessibility
expert3:00remaining
Improving accessibility of Bootstrap cards
Which practice best improves accessibility for users navigating Bootstrap cards with a keyboard and screen readers?
Attempts:
2 left
💡 Hint
Think about how screen readers identify sections and how keyboard users find focus.
✗ Incorrect
Adding role="region" and descriptive aria-label helps screen readers announce the card's purpose and allows keyboard users to navigate easily.