0
0
Tailwindmarkup~10 mins

Text alignment in Tailwind - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to align the text to the center using Tailwind CSS.

Tailwind
<p class="text-[1]">This text is centered.</p>
Drag options to blanks, or click blank then click option'
Aleft
Bcenter
Cjustify
Dright
Attempts:
3 left
💡 Hint
Common Mistakes
Using text-left or text-right instead of text-center.
Forgetting the text- prefix.
2fill in blank
medium

Complete the code to align the text to the right using Tailwind CSS.

Tailwind
<div class="[1]">Right aligned text here.</div>
Drag options to blanks, or click blank then click option'
Atext-right
Btext-center
Ctext-left
Dtext-justify
Attempts:
3 left
💡 Hint
Common Mistakes
Using text-center when right alignment is needed.
Using text-justify which spreads text evenly.
3fill in blank
hard

Fix the error in the code to justify the paragraph text using Tailwind CSS.

Tailwind
<p class="text-[1]">This paragraph is justified.</p>
Drag options to blanks, or click blank then click option'
Acenter
Bright
Cjustify
Dleft
Attempts:
3 left
💡 Hint
Common Mistakes
Using text-center or text-right instead of text-justify.
Omitting the text- prefix.
4fill in blank
hard

Fill both blanks to create a heading with left-aligned text and bold font using Tailwind CSS.

Tailwind
<h1 class="[1] [2]">Welcome to the site!</h1>
Drag options to blanks, or click blank then click option'
Atext-left
Btext-center
Cfont-bold
Dfont-light
Attempts:
3 left
💡 Hint
Common Mistakes
Using text-center instead of text-left.
Using font-light instead of font-bold.
5fill in blank
hard

Fill all three blanks to create a paragraph with right-aligned, italic, and gray text using Tailwind CSS.

Tailwind
<p class="[1] [2] [3]">This is a styled paragraph.</p>
Drag options to blanks, or click blank then click option'
Atext-right
Bitalic
Ctext-gray-500
Dfont-bold
Attempts:
3 left
💡 Hint
Common Mistakes
Using font-bold instead of italic.
Using text-left instead of text-right.