Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What is the difference between em and rem units?

  1. A em is relative to the parent's font size; rem is relative to the root font size
  2. B rem is relative to the parent; em to the root
  3. C They are identical
  4. D em is an absolute unit
Answer

em is relative to the parent's font size; rem is relative to the root font size

Nested em values compound, which can produce unexpected sizes. rem always resolves against the html element, making it more predictable.

All Front end Development MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as