0
0
Tailwindmarkup~10 mins

Font family utilities 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 apply a sans-serif font family using Tailwind CSS.

Tailwind
<p class="font-[1]">This text uses a sans-serif font.</p>
Drag options to blanks, or click blank then click option'
Asans
Bserif
Cmono
Dcursive
Attempts:
3 left
💡 Hint
Common Mistakes
Using font-serif instead of font-sans for sans-serif fonts.
Using font-mono which applies monospace fonts.
2fill in blank
medium

Complete the code to apply a monospace font family using Tailwind CSS.

Tailwind
<code class="font-[1]">console.log('Hello, world!');</code>
Drag options to blanks, or click blank then click option'
Aserif
Bdisplay
Cmono
Dsans
Attempts:
3 left
💡 Hint
Common Mistakes
Using font-sans or font-serif for code blocks.
Using font-display which is for decorative fonts.
3fill in blank
hard

Fix the error in the class name to apply a serif font family using Tailwind CSS.

Tailwind
<h1 class="font-[1]">Welcome to the site</h1>
Drag options to blanks, or click blank then click option'
Aserif
Bsans
Cmono
Dscript
Attempts:
3 left
💡 Hint
Common Mistakes
Using font-sans when a serif font is needed.
Using invalid class names like font-script.
4fill in blank
hard

Fill both blanks to apply a monospace font and make the text bold using Tailwind CSS.

Tailwind
<p class="[1] [2]">This is code text.</p>
Drag options to blanks, or click blank then click option'
Afont-mono
Bfont-bold
Cfont-sans
Dfont-light
Attempts:
3 left
💡 Hint
Common Mistakes
Using font-sans instead of font-mono for code text.
Using font-light instead of font-bold for bold text.
5fill in blank
hard

Fill all three blanks to create a heading with serif font, extra large size, and italic style using Tailwind CSS.

Tailwind
<h2 class="[1] [2] [3]">Stylish Heading</h2>
Drag options to blanks, or click blank then click option'
Afont-serif
Btext-xl
Citalic
Dfont-mono
Attempts:
3 left
💡 Hint
Common Mistakes
Using font-mono instead of font-serif for serif fonts.
Forgetting to add italic for italic style.