HTML and CSS Certification Practice Test 2025 - Free HTML and CSS Practice Questions and Study Guide

Image Description

Question: 1 / 400

True or false: Percent and EM are absolute measurements for font sizes in CSS.

True

False

The statement is false because both percent and EM are relative units of measurement in CSS, not absolute measurements.

Relative units like percent and EM allow for flexible and scalable design, which means that they adjust based on the context in which they are used. Percentages are relative to the parent element's font size while the EM unit is relative to the font size of the element itself or its nearest parent with a defined font size. This relative nature enhances responsiveness across different devices and facilitates accessibility for users who may need to increase or decrease text size without breaking the overall page layout.

In contrast, absolute units such as pixels (px), points (pt), or inches (in) provide fixed measurements that do not scale with the surrounding content or user preferences, thus limiting flexibility. This distinction clarifies why the statement regarding percent and EM as absolute measurements is inaccurate.

Get further explanation with Examzify DeepDiveBeta

Only EM is absolute

Only Percent is absolute

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy