What is the difference between em and rem units in CSS font sizing?
- Relative to the browser's default font-size
- Relative to the font-size of the element itself
- Relative to the font-size of the nearest parent
- Relative to the root element's font-size
In CSS, 'em' and 'rem' units are used for font sizing, but they differ in their reference point. Understanding their differences is crucial for responsive design and consistent typography.
Loading...
Related Quiz
- Which property in CSS is used to set the width of the content area of an element?
- A CSS variable declared inside an element is only accessible within the ________ of that element.
- The ________ tool is commonly used for automated cross-browser testing.
- What's the primary difference between the clip-path and mask properties in CSS?
- ________ is a technique in CSS where multiple images are combined into a single image to reduce the number of server requests.