What is the difference between em and rem units?
- A em is relative to the parent's font size; rem is relative to the root font size
- B rem is relative to the parent; em to the root
- C They are identical
- 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.





