0
0
CSSmarkup~20 mins

Responsive typography in CSS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Responsive Typography Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding viewport units in responsive typography
Which CSS unit is best suited for scaling font size based on the viewport width?
Avw
Bem
Cpx
Drem
Attempts:
2 left
💡 Hint
Think about a unit that changes size as the browser window changes width.
📝 Syntax
intermediate
2:00remaining
Correct syntax for fluid typography using clamp()
Which CSS snippet correctly uses clamp() to create fluid typography that scales between 1rem and 3rem based on viewport width?
Afont-size: clamp(1rem 2vw 3rem);
Bfont-size: clamp(2vw, 1rem, 3rem);
Cfont-size: clamp(1rem, 2vw, 3rem);
Dfont-size: clamp(3rem, 1rem, 2vw);
Attempts:
2 left
💡 Hint
Remember the order is min, preferred, max.
rendering
advanced
2:00remaining
Result of CSS with clamp() on different viewport widths
Given this CSS, what will be the font size when the viewport width is 500px?

font-size: clamp(1rem, 5vw, 2rem);

Note: 1rem = 16px.
A32px
B25px
C16px
D40px
Attempts:
2 left
💡 Hint
Calculate 5vw at 500px width and compare with min and max.
selector
advanced
2:00remaining
CSS selector for responsive typography on headings only
Which CSS selector targets all heading elements (h1 to h6) to apply responsive font sizes?
Aheading { font-size: clamp(1rem, 2vw, 3rem); }
Ball-headings { font-size: clamp(1rem, 2vw, 3rem); }
Ch1-h6 { font-size: clamp(1rem, 2vw, 3rem); }
Dh1, h2, h3, h4, h5, h6 { font-size: clamp(1rem, 2vw, 3rem); }
Attempts:
2 left
💡 Hint
Think about how to list multiple selectors in CSS.
accessibility
expert
2:00remaining
Ensuring accessible responsive typography
Which practice best improves accessibility when using responsive typography?
AUse relative units like rem and allow user zoom
BUse very small font sizes to fit more text on screen
CDisable browser zoom to maintain layout
DUse fixed pixel font sizes to keep text consistent
Attempts:
2 left
💡 Hint
Accessibility means users can adjust text size easily.