0
0
Bootsrapmarkup~20 mins

Bootstrap vs Tailwind comparison - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
CSS Framework Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2: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?
ABootstrap provides pre-designed components with fixed styles, while Tailwind offers utility classes to build custom designs.
BBootstrap uses utility classes only, while Tailwind provides ready-made components with fixed styles.
CBoth Bootstrap and Tailwind only provide JavaScript plugins without CSS styles.
DBootstrap requires writing all CSS from scratch, while Tailwind offers pre-built themes.
Attempts:
2 left
💡 Hint
Think about whether the frameworks give you ready-made blocks or small building blocks.
📝 Syntax
intermediate
1:30remaining
Which Tailwind class adds horizontal padding of 1rem?
In Tailwind CSS, which class adds horizontal padding equal to 1rem (16px)?
Apl-4
Bp-4
Cpy-4
Dpx-4
Attempts:
2 left
💡 Hint
The 'x' in the class name means horizontal (left and right).
rendering
advanced
2: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>
ARed background with white text
BGray background with black text
CBlue background with white text
DTransparent background with blue text
Attempts:
2 left
💡 Hint
Bootstrap's primary button color is a shade of blue by default.
selector
advanced
1: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?
Axl:
Bmd:
Clg:
Dsm:
Attempts:
2 left
💡 Hint
Think about the order of screen sizes: small, medium, large, extra large.
accessibility
expert
2: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?
AAlways use semantic HTML elements and add ARIA labels where needed.
BOnly rely on color changes to indicate interactive elements.
CAvoid using keyboard navigation features to simplify code.
DUse inline styles instead of classes for better screen reader support.
Attempts:
2 left
💡 Hint
Accessibility means everyone can use your site, including people using screen readers or keyboards.