Complete the code to set the base font size using a relative unit for better scaling.
body {
font-size: [1];
}Using 1rem sets the font size relative to the root element, which helps with responsive scaling.
Complete the media query to increase font size on screens wider than 600px.
@media (min-width: 600px) { body { font-size: [1]; } }
Increasing font size to 1.25rem on larger screens improves readability.
Fix the error in the CSS to make the heading font size responsive using clamp().
h1 {
font-size: clamp([1], 5vw, 3rem);
}The minimum font size should be a reasonable size like 2rem to ensure readability on small screens.
Fill both blanks to create a responsive paragraph font size that scales between 1rem and 1.5rem.
p {
font-size: clamp([1], 2vw, [2]);
}The font size will never go below 1rem or above 1.5rem, scaling smoothly with viewport width.
Fill all three blanks to create a CSS rule that sets the root font size responsively using clamp().
:root {
font-size: clamp([1], [2], [3]);
}This sets the root font size to never go below 14px, scale with viewport width at 1vw, and never exceed 18px.