0
0
Tailwindmarkup~20 mins

Font weight control in Tailwind - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Font Weight Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate
1:00remaining
Which Tailwind class sets the font weight to bold?
Choose the Tailwind CSS class that correctly applies a bold font weight to text.
Afont-bold
Bfont-heavy
Ctext-bold
Dfont-strong
Attempts:
2 left
💡 Hint
Tailwind uses the prefix font- for font weight classes.
rendering
intermediate
1:30remaining
What font weight will the text have with class font-light?
If you apply the Tailwind class font-light to a paragraph, what font weight will the text display in the browser?
Tailwind
<p class="font-light">Sample text</p>
AFont weight 900 (black)
BFont weight 700 (bold)
CFont weight 300 (light)
DFont weight 400 (normal)
Attempts:
2 left
💡 Hint
Tailwind font weights follow numeric values similar to CSS font-weight property.
selector
advanced
1:30remaining
Which Tailwind class applies the heaviest font weight?
Select the Tailwind CSS class that applies the heaviest (boldest) font weight available by default.
Afont-black
Bfont-extrabold
Cfont-thin
Dfont-semibold
Attempts:
2 left
💡 Hint
Tailwind font weights range from thin (100) to black (900).
🧠 Conceptual
advanced
1:30remaining
How does Tailwind's font-semibold compare to font-bold?
Choose the correct statement about the difference between font-semibold and font-bold in Tailwind CSS.
A<code>font-semibold</code> is heavier than <code>font-bold</code>
B<code>font-semibold</code> is lighter than <code>font-bold</code>
CBoth have the same font weight
D<code>font-semibold</code> is not a valid Tailwind class
Attempts:
2 left
💡 Hint
Think about numeric font-weight values: semibold is usually less than bold.
accessibility
expert
2:00remaining
Why is controlling font weight important for accessibility?
Select the best reason why adjusting font weight using Tailwind classes can improve accessibility on websites.
AUsing font weight classes disables screen readers
BLighter font weights reduce page load time significantly
CFont weight changes do not affect accessibility
DHeavier font weights improve readability for users with low vision by increasing contrast
Attempts:
2 left
💡 Hint
Think about how text visibility helps users with vision difficulties.