🎨 Tailwind CSS Quiz

Sharpen your Tailwind CSS utility class knowledge with this interactive quiz—perfect for frontend developers and design enthusiasts!

Your Performance
Quick Reference

  • mt-4: margin-top: 1rem
  • p-2: padding on all sides (0.5rem)
  • mx-auto: horizontal margin auto

  • flex: enables flexbox
  • justify-between: space between items
  • grid-cols-3: three equal-width columns

  • bg-blue-500: background color blue
  • text-red-600: text color red
  • border-green-300: border color light green
Common Tailwind Classes
Utility Class CSS Equivalent
Margin Top mt-4 margin-top: 1rem
Padding All p-2 padding: 0.5rem
Background bg-blue-500 background-color: #3b82f6
Text Alignment text-center text-align: center
Display flex, grid display: flex/grid
Font Weight font-bold font-weight: 700