A. The class rounded-top-md is invalid in Tailwind
B. The padding class p-4 is incorrect
C. The background color class bg-green-400 is invalid
D. The button tag cannot have rounded corners
Solution
Step 1: Check the border radius class syntax
Tailwind uses rounded-t for top corners, not rounded-top.
Step 2: Confirm other classes
p-4 and bg-green-400 are valid Tailwind classes, and buttons can have rounded corners.
Final Answer:
The class rounded-top-md is invalid in Tailwind -> Option A
Quick Check:
Correct top rounding class = rounded-t-md [OK]
Hint: Use rounded-t-md for top corners, not rounded-top-md [OK]
Common Mistakes:
Using non-existent class names
Confusing padding with border radius
Thinking buttons can't have rounded corners
5. You want a card with only the bottom corners rounded to extra large size using Tailwind. Which single class achieves this?
hard
A. rounded-xl
B. rounded-bl-xl rounded-br-xl
C. rounded-b-xl
D. rounded-bottom-xl
Solution
Step 1: Understand bottom corner rounding classes
rounded-b-xl rounds both bottom-left and bottom-right corners to extra large size.
Step 2: Compare with other options
rounded-bl-xl and rounded-br-xl individually round corners but rounded-b-xl is simpler and correct. rounded-xl rounds all corners, and rounded-bottom-xl is invalid.
Final Answer:
rounded-b-xl -> Option C
Quick Check:
Bottom corners extra large = rounded-b-xl [OK]
Hint: Use rounded-b-xl for both bottom corners [OK]