Font Size
HC · Typographysyntax
font-size: value; /* px, rem, em, %, clamp() */example
html {
font-size: 16px; /* base for rem units */
}
body {
font-size: 1rem;
}
h1 {
font-size: clamp(1.75rem, 4vw, 3rem);
}
.small-text {
font-size: 0.875rem; /* 14px at 16px base */
}Note Use rem for consistent sizing relative to the root. em is relative to the parent's font size which compounds in nested elements. clamp() creates fluid typography that scales between a minimum and maximum.