Question · HTML and CSS course · Module 5: Responsiveness
Difference between em and rem
What is the difference between the em and rem units in CSS?
Answer options
- em is for margins, rem is for fonts
- em is relative to the parent's font size, rem is relative to the root (html) element
- There is no difference - they are synonyms
- em is larger than rem
You can check the correct answer by solving this task in the CodeWorlds game.