0
0
Tailwindmarkup~20 mins

Font family utilities in Tailwind - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Font Family Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
📝 Syntax
intermediate
2:00remaining
What is the rendered font family for this Tailwind class?
Given the HTML snippet below, what font family will the text use in a browser?

<p class="font-serif">Hello World</p>
Tailwind
<p class="font-serif">Hello World</p>
AThe text uses a monospace font family like Courier New.
BThe text uses a sans-serif font family like Arial or Helvetica.
CThe text uses a serif font family like Times New Roman or Georgia.
DThe text uses a cursive font family like Comic Sans.
Attempts:
2 left
💡 Hint
Tailwind's font-serif class applies a serif font stack.
🧠 Conceptual
intermediate
2:00remaining
Which Tailwind class applies a monospace font?
You want your code snippet text to look like typed code with fixed-width letters. Which Tailwind class should you use?
Afont-sans
Bfont-serif
Cfont-code
Dfont-mono
Attempts:
2 left
💡 Hint
Monospace fonts have equal width for all characters.
rendering
advanced
2:00remaining
What is the visual difference between font-sans and font-serif in Tailwind?
You have two paragraphs:

<p class="font-sans">Sans-serif text</p>
<p class="font-serif">Serif text</p>


How will these paragraphs look different in a browser?
Tailwind
<p class="font-sans">Sans-serif text</p>
<p class="font-serif">Serif text</p>
Afont-sans text has no small strokes at letter ends; font-serif text has small decorative strokes.
Bfont-sans text is italic; font-serif text is bold.
Cfont-sans text uses fixed-width letters; font-serif text uses variable-width letters.
Dfont-sans text is uppercase; font-serif text is lowercase.
Attempts:
2 left
💡 Hint
Serif fonts have small lines at the ends of letters; sans-serif fonts do not.
selector
advanced
2:00remaining
Which Tailwind class combination sets a monospace font with bold weight?
You want text that uses a monospace font and appears bold. Which class combination achieves this?
Afont-mono font-bold
Bfont-serif font-semibold
Cfont-sans font-light
Dfont-mono font-light
Attempts:
2 left
💡 Hint
font-mono sets monospace; font-bold sets bold weight.
accessibility
expert
2:00remaining
Why is choosing the right font family important for accessibility?
Which statement best explains why font family choice matters for users with reading difficulties?
ASerif fonts are always easier to read for everyone, so use font-serif everywhere.
BMonospace fonts improve readability for code but may reduce readability for long text.
CFont family choice does not affect accessibility; only font size matters.
DSans-serif fonts are never recommended because they cause eye strain.
Attempts:
2 left
💡 Hint
Think about different reading needs and contexts.