0
0
Tailwindmarkup~10 mins

Why typography control is needed in Tailwind - Test Your Understanding

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

Complete the code to apply a readable font size using Tailwind CSS.

Tailwind
<p class="text-[1]">This is a paragraph with controlled typography.</p>
Drag options to blanks, or click blank then click option'
Asm
Bxl
Cbase
D2xl
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a font size too large or too small for body text.
Using heading sizes for paragraphs.
2fill in blank
medium

Complete the code to add proper line spacing for better readability.

Tailwind
<p class="leading-[1]">Good line height helps users read text easily.</p>
Drag options to blanks, or click blank then click option'
Anormal
Brelaxed
Csnug
Dtight
Attempts:
3 left
💡 Hint
Common Mistakes
Using too tight line height causing text to look cramped.
Using line heights meant for headings.
3fill in blank
hard

Fix the error in the class to set the font weight for emphasis.

Tailwind
<strong class="font-[1]">Important text</strong>
Drag options to blanks, or click blank then click option'
Abold
Blight
Cnormal
Dmedium
Attempts:
3 left
💡 Hint
Common Mistakes
Using font-light which makes text thinner.
Using font-normal which is default weight.
4fill in blank
hard

Fill both blanks to create a heading with large size and tight letter spacing.

Tailwind
<h1 class="text-[1] tracking-[2]">Welcome to the site</h1>
Drag options to blanks, or click blank then click option'
A4xl
B5xl
Ctight
Dwide
Attempts:
3 left
💡 Hint
Common Mistakes
Using too small font size for headings.
Using wide letter spacing which looks spaced out.
5fill in blank
hard

Fill all three blanks to style a paragraph with medium font weight, relaxed line height, and base font size.

Tailwind
<p class="font-[1] leading-[2] text-[3]">This paragraph is easy to read.</p>
Drag options to blanks, or click blank then click option'
Amedium
Brelaxed
Cbase
Dbold
Attempts:
3 left
💡 Hint
Common Mistakes
Using bold font weight which can be too strong for paragraphs.
Using tight line height making text cramped.
Using too large or too small font size.