--- url: "https://www.w3.org/WAI/WCAG22/Techniques/css/C13" titulek: "C13: Using named font sizes | WAI | W3C" h1: "Technique C13:Using named font sizes" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 04:44:19" znaku: 2237 slov: 324 kodovani: "utf-8" sha256: "aecf5ba25147dd414d39017eb936bd4eb8d08275b3328b6d0ffea19af90e39bd" --- # Technique C13:Using named font sizes ## About this Technique This technique relates to: - [1.4.4 Resize Text](https://www.w3.org/WAI/WCAG22/Understanding/resize-text) ( **Sufficient** when used for techniques for relative measurements) - [1.4.5 Images of Text](https://www.w3.org/WAI/WCAG22/Understanding/images-of-text) ( **Advisory** ) - [1.4.8 Visual Presentation](https://www.w3.org/WAI/WCAG22/Understanding/visual-presentation) ( **Sufficient** when used with [G146: Using liquid layout](../general/G146) ) - [1.4.9 Images of Text (No Exception)](https://www.w3.org/WAI/WCAG22/Understanding/images-of-text-no-exception) ( **Advisory** ) This technique applies to CSS. Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description The objective of this technique is to specify a named font size that expresses the relative font size desired. These values provide hints so that the user agent can choose a `font-size` relative to the inherited `font-size`. ## Examples ### Example 1: Named font sizes in CSS This example selects a larger font size for `strong` elements so that their text will always be larger than the surrounding text, in whatever context they are used. Assuming that headings and paragraphs use different font sizes, the emphasized words in this example will each be larger than their surrounding text. ``` ...
Since only the user can know what size text works for them, it is very important to let them configure the text size. ... ``` ## Related Resources *No endorsement implied.* - [CSS Fonts Module Level 3](https://www.w3.org/TR/css-fonts-3/) . - [CSS 3 `font-size` Property](https://www.w3.org/TR/css-fonts-3/#font-size-prop) . ## Tests ### Procedure 1. Check that the value of the CSS property that defines the font size is one of `xx-small` , `x-small` , `small` , `medium` , `large` , `x-large` , `xx-large` , `smaller` , or `larger` . ### Expected Results - Check #1 is true Back to Top