To define the size of character fonts, only use relative units for the CSS font-size
property, such as em
, %
, px
, rem
, and the keywords x-small
, small
, etc.
Do not use absolute unit sizes, such as pt
, cm
, etc.
Due to its poor support in Internet Explorer, using pixels (px) as a unit of font size is not authorized in some guidelines such as the French guidelines AccessiWeb or RGAA. To ensure conformity with these guidelines, you must use a different unit of size for the font-size
property.