What is typography?
Typography gives the reader visual cues about where the text begins, which information belongs together and what deserves attention first. A heading marks a new topic, while the space between paragraphs shows where one thought ends and the next begins. In other words, typography helps the reader decode the structure of a text before reading it from start to finish.
Nielsen Norman Group distinguishes between legibility and readability. Legibility is about how easily the reader can see and recognise letters and words. Readability, in this distinction, is about how simple or complex the language is. You can make the letters easier to recognise with a different choice of typeface, and you need to change the text itself if long sentences make the message hard to understand.
How do you use your knowledge of typography?
You can start by deciding what the reader should notice first, and which information should be easy to find afterwards. You can give the main heading more weight than the subheadings and use the space around them to show which sections they belong to. This creates a visual hierarchy that helps the reader skim the page.
You can then assess how line length and line spacing work together in the body text. Pay particular attention to whether the reader can easily find the start of the next line. The same layout can produce different line lengths on different screens, so check the text on both narrow and wide screens.
Why should you know about typography?
You can use typography to make a campaign easier to decode. A clear difference between the message, the terms and the button text helps the reader find both the information that explains the offer and the action they can take. If several text elements get the same visual weight, the reader may find it harder to work out where it makes sense to start.
Your typographic choices can also reinforce your branding. You can create visual consistency between an ad and a landing page by repeating key fonts and highlights. You don't need to use exactly the same size or spacing in both formats, because the space available and the purpose of the text vary.
What functions can typography have?
You can distinguish between several types of typography based on the job the text has to do. Body text typography has to support reading over several paragraphs. Heading typography marks the structure of the text, while display typography gives a short, prominent text a more striking look. Heading typography and display typography can therefore overlap, but a subheading doesn't need to attract as much attention as a campaign headline.
UI typography covers text in user interfaces, where the reader needs to recognise menu items, buttons and form fields. Web typography is broader. You can use the term for all typographic choices on a website, from longer articles to short text in the navigation.
How do you handle typography in practice?
You can test with the texts the reader will actually see. A short placeholder won't show whether a longer heading breaks awkwardly, or whether a button still has room for all its text on a narrow screen. You should also enlarge the text and check that the reader can still see the content and use the page's functions.
You should check the contrast between the text and the background. As a general rule, WCAG 2.2 specifies at least 4.5:1 for normal text and at least 3:1 for large text under success criterion 1.4.3.
What should you watch out for?
You should distinguish between your default settings and the changes your website needs to be able to handle. Under success criterion 1.4.12 at level AA, WCAG 2.2 requires that users don't lose content or functionality when they change text spacing to the following values:
- A line height of at least 1.5 times the font size.
- Spacing after paragraphs of at least 2 times the font size.
- Letter spacing of at least 0.12 times the font size.
- Word spacing of at least 0.16 times the font size.
So you don't have to choose these spacings as your default. You need to make sure the page still works when the user changes them. Nor should you choose a typeface based on a fixed rule that serif or sans serif always works best on screen. You get a better basis for your choice by checking whether you can easily tell the letters apart at the size and in the context where the reader meets them.