0
0
CSSmarkup~5 mins

Font size in CSS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What CSS property controls the size of text on a webpage?
The font-size property controls how big or small the text appears.
Click to reveal answer
beginner
What unit is recommended for font sizes to support responsive design?
Using relative units like rem or em is recommended because they scale better on different screen sizes.
Click to reveal answer
intermediate
How does 1rem relate to font size?
1rem equals the font size of the root element (<html>). If the root font size is 16px, then 1rem is 16px.
Click to reveal answer
intermediate
What happens if you set font size using pixels (px)?
Pixels set a fixed size that does not scale with user settings or screen size, which can hurt accessibility and responsiveness.
Click to reveal answer
advanced
Why is it important to use semantic HTML with font size styling?
Semantic HTML helps screen readers and browsers understand content structure, so font size changes enhance readability without breaking meaning.
Click to reveal answer
Which CSS unit is best for scalable font sizes?
Acm
Bpx
Crem
Dpt
What does font-size: 2em; mean?
ATwice the size of the parent element's font size
BTwice the size of the root element's font size
C2 pixels
D2 points
Which property would you use to increase text size in CSS?
Atext-size
Bfont-size
Cfont-weight
Dtext-style
Why avoid using only px for font sizes?
ABecause <code>px</code> does not scale with user settings
BBecause <code>px</code> changes color
CBecause <code>px</code> is slower to load
DBecause <code>px</code> is not supported by browsers
What is the default font size in most browsers if not changed?
A20px
B12px
C10px
D16px
Explain how to set font size in CSS for a paragraph that scales well on different devices.
Think about relative units and why they help with different screen sizes.
You got /4 concepts.
    Describe why accessibility matters when choosing font sizes in web design.
    Consider how different users might need different text sizes.
    You got /5 concepts.