Which of the following defines a measurement relative to a font’s x-height?

%
cm
em
ex

The correct answer is: D. ex

An ex is a unit of length in typography that is equal to the height of the lowercase “x” in a given font. It is used as a relative unit of measurement, meaning that it is always based on the font size. For example, if a font has an x-height of 10pt, then 1ex would also be 10pt.

The other options are not relative units of measurement. A percentage (%) is a unit of measurement that is relative to the size of the parent element. A centimeter (cm) is a unit of measurement in the metric system. A point (pt) is a unit of measurement in typography that is equal to 1/72 of an inch.

Here is a table that summarizes the different units of measurement and their definitions:

| Unit of measurement | Definition |
| — | — |
| % | A percentage is a unit of measurement that is relative to the size of the parent element. For example, if a parent element has a width of 100px, then a child element with a width of 50% would have a width of 50px. |
| cm | A centimeter is

75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"/> Subscribe on YouTube
a unit of measurement in the metric system. It is equal to 1/100 of a meter. |
| pt | A point is a unit of measurement in typography. It is equal to 1/72 of an inch. |
| em | An em is a unit of measurement in typography that is equal to the width of the uppercase “M” in a given font. It is used as a relative unit of measurement, meaning that it is always based on the font size. |
| ex | An ex is a unit of measurement in typography that is equal to the height of the lowercase “x” in a given font. It is used as a relative unit of measurement, meaning that it is always based on the font size. |