border-green is incomplete; Tailwind requires a shade like border-green-500.
Step 2: Verify other classes
border-2 and border-solid are valid classes.
Final Answer:
Missing shade number in border color class -> Option D
Quick Check:
Border color needs shade number like -500 [OK]
Hint: Always add shade number to color classes [OK]
Common Mistakes:
Omitting shade number in color class
Using invalid style class names
Confusing border width units
5. You want a responsive border that is solid red on small screens and dashed blue on medium and larger screens. Which class combination achieves this?
hard
A. border border-red-600 border-solid md:border-blue-600 md:border-dashed
B. border border-red-600 border-dashed md:border-blue-600 md:border-solid
C. border border-blue-600 border-solid md:border-red-600 md:border-dashed
D. border border-red-600 md:border-blue-600 border-dashed md:border-solid
Solution
Step 1: Set default small screen styles
Use border-red-600 and border-solid for small screens (default).
Step 2: Override on medium screens and up
Use md:border-blue-600 and md:border-dashed to change color and style on medium+ screens.
Final Answer:
border border-red-600 border-solid md:border-blue-600 md:border-dashed -> Option A
Quick Check:
Default solid red, medium+ dashed blue with md: prefix [OK]
Hint: Use md: prefix to change styles on medium screens [OK]