Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to add a red border to the div.
Tailwind
<div class="border [1] p-4">Hello</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a color other than red.
Forgetting to include the
border class for border width.✗ Incorrect
The class border-red-500 adds a red border color in Tailwind CSS.
2fill in blank
mediumComplete the code to make the border dashed.
Tailwind
<div class="border border-red-500 [1] p-4">Dashed border</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
border-solid which is the default solid border.Using
border-none which removes the border.✗ Incorrect
The class border-dashed changes the border style to dashed in Tailwind CSS.
3fill in blank
hardFix the error in the code to correctly add a blue dotted border.
Tailwind
<div class="border border-[1]-500 border-dotted p-4">Blue dotted border</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a color other than blue.
Leaving the color part blank.
✗ Incorrect
The color part of the class should be blue to get a blue border color.
4fill in blank
hardFill both blanks to create a green double border with medium thickness.
Tailwind
<div class="border-[1] border-[2]-500 border-double p-4">Green double border</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
border-4 which is thicker than medium.Using wrong color like red.
✗ Incorrect
border-2 sets medium border thickness and border-green-500 sets the green color.
5fill in blank
hardFill all three blanks to create a thick, yellow, solid border.
Tailwind
<div class="border-[1] border-[2]-500 border-[3] p-4">Thick yellow solid border</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using thin border thickness like
border-1.Choosing wrong color or style.
✗ Incorrect
border-8 sets a thick border, border-yellow-500 sets yellow color, and border-solid sets solid style.