What units of measurement can be used for font size?
For font-size, you can use relative and absolute units.
Relative:
em, relative to the parent's font sizerem, relative to the root element's font size (html)%, a percentage of the parent's font sizevw,vh, a fraction of the browser window's width or heightvmin,vmax, a fraction of the window's smaller/larger side
Absolute:
px, pixelspt, typographic pointspc, picasin, inchescm, centimetersmm, millimeters
In practice, px, em, rem, and % are used most often.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.