Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to add a Tailwind class that makes text bold.
Tailwind
<p class="[1]">This text is bold.</p>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using padding or background color classes instead of font weight.
✗ Incorrect
The font-bold class in Tailwind CSS makes the text bold.
2fill in blank
mediumComplete the code to add a Tailwind class that centers text horizontally.
Tailwind
<div class="[1]">Centered text</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using margin or background classes instead of text alignment.
✗ Incorrect
The text-center class centers text horizontally in Tailwind CSS.
3fill in blank
hardFix the error in the Tailwind class to add padding of 4 units.
Tailwind
<section class="[1]">Content with padding</section>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using full words like 'padding-4' or missing hyphens.
✗ Incorrect
In Tailwind CSS, padding is added with p-4. Other options are invalid.
4fill in blank
hardFill both blanks to create a responsive blue background with padding.
Tailwind
<div class="[1] [2]">Responsive box</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using red background or wrong padding classes.
✗ Incorrect
bg-blue-500 sets a blue background, and p-4 adds padding.
5fill in blank
hardFill all three blanks to create a flex container with centered items and gap.
Tailwind
<div class="[1] [2] [3]">Flex container</div>
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
block instead of flex or missing gap class.✗ Incorrect
flex makes the container flexible, items-center centers items vertically, and gap-4 adds space between items.