Challenge - 5 Problems
CSS Framework Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
What is a key difference in styling approach between Bootstrap and Tailwind?
Bootstrap and Tailwind are popular CSS frameworks. Which statement best describes their main difference in styling approach?
Attempts:
2 left
💡 Hint
Think about whether the frameworks give you ready-made blocks or small building blocks.
✗ Incorrect
Bootstrap comes with ready-made styled components like buttons and navbars. Tailwind provides small utility classes like padding and colors to build your own design.
📝 Syntax
intermediate1:30remaining
Which Tailwind class adds horizontal padding of 1rem?
In Tailwind CSS, which class adds horizontal padding equal to 1rem (16px)?
Attempts:
2 left
💡 Hint
The 'x' in the class name means horizontal (left and right).
✗ Incorrect
In Tailwind, px-4 adds padding-left and padding-right of 1rem. The number 4 corresponds to 1rem by default.
❓ rendering
advanced2:00remaining
What will be the background color of this Bootstrap button?
Given this Bootstrap button code, what color will the button background be?
<button class="btn btn-primary">Click me</button>
Attempts:
2 left
💡 Hint
Bootstrap's primary button color is a shade of blue by default.
✗ Incorrect
The btn-primary class in Bootstrap applies a blue background and white text color.
❓ selector
advanced1:30remaining
Which Tailwind selector applies styles only on medium screens and larger?
In Tailwind CSS, which prefix applies styles only when the screen width is medium (768px) or larger?
Attempts:
2 left
💡 Hint
Think about the order of screen sizes: small, medium, large, extra large.
✗ Incorrect
The md: prefix applies styles starting at the medium breakpoint (768px) and up.
❓ accessibility
expert2:30remaining
Which practice improves accessibility in both Bootstrap and Tailwind projects?
Which of the following is the best practice to improve accessibility when using Bootstrap or Tailwind CSS?
Attempts:
2 left
💡 Hint
Accessibility means everyone can use your site, including people using screen readers or keyboards.
✗ Incorrect
Using semantic HTML and ARIA labels helps assistive technologies understand your content. Relying only on color or skipping keyboard support hurts accessibility.