🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: CSS Basics: all 10 questions

Quiz: CSS Basics · Question 8 of 10

Why is rem preferred over px for font sizes?

Why is rem preferred over px for font sizes?

  1. A.rem works only on phones
  2. B.px is not supported by browsers
  3. C.rem is relative to the root font size, so text respects the user's font-size setting
  4. D.rem makes text bold
Answer & explanation

Correct answer: rem is relative to the root font size, so text respects the user's font-size setting

1rem usually equals 16px but scales if the user changes their browser's font size.

Can you get the rest right without peeking?

Take the timed Quiz: CSS Basics quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →