Still, too many web designers neglect the importance of typography on the web. So far, I’ve only met a few that really understand typography and know how to apply that knowledge to their work. And the lack of knowledge about typography doesn’t come from ignorance. I learned that web designers are commonly either self-taught and haven’t grasped the importance of typography yet, or they actually studied design but typography was just one of the classes they had to attend.
I created the Better Web Type course to help raise awareness of the important role typography plays on the web. In my opinion, both web designers and web developers should learn the basics—if a designer uses ligatures in her designs but the developer doesn’t even know what ligatures are, how can we expect him to correctly transform the most beautifully designed typography into code? With both roles knowing the basics, we’ll be able to start contributing to a better web by producing better web typography. Together.
One of the most important things in typography is to shape a seamless reading experience that invites the reader and presents the content in an objective way. To do that, we need to be able to shape perfect paragraphs. There are three keys to doing that, as Josef Mueller-Brockmann—a renowned 20th-century typographer and visual communicator, put it:
The reader should be able to read the message of a text easily and comfortably. This depends to a not inconsiderable extent on the size of the type, the length of the lines and the leading (line-height).
When I was writing the lessons for the Better Web Type course, I was trying to think of a simple concept that would illustrate exactly that:
line-height, and length of lines need to be in perfect balance. I struggled for a while but then, out of nothing, it hit me—the equilateral triangle. All three sides of an equilateral triangle are equal and so are all the three angles. A great representation of three things in perfect balance. It turned out that it was easy to apply this idea to the three keys that shape a perfect paragraph. But first, let’s take a look at each of them in isolation.
One of the mistakes that most websites make is that they make the main body text too small. Back in the early 2000s it was common practice to set the body text to a size of around 11px. But back then the screens were smaller with lower screen resolutions. 11px then was larger than it is now.
A common rule for setting the body text is to set it to a size that would match the size of the text in a book at an arm’s length distance.
The recommended size for today’s screens is 16px for mobile and from 18 to 22px for desktop. This also depends on the typeface. Some typefaces set at 16px may seem larger than others, as it’s clear in the picture below.
“Type color” in typography doesn’t mean actual color like red, blue or green. Type color means how heavy black type on a light background looks like. A typeface of the same size and same weight may seem heavier than another one. The contrast of the Merriweather typeface in the example above is lower (comparing the serifs and different stems) than the one of Georgia on the right. That makes it look heavier and the color of the type is darker.
Reading very long lines of text is tiring for our eyes. Our eyes need constant pauses which are provided by line breaks. In that instance of switching to the next line, they get that short pause. Short, but long enough to keep them going for longer. It’s like an engine that doesn’t run on full power all the time so it keeps going longer without overheating.
The ideal length of a line of text is from 45 to 75 characters—including spaces. Anything that reaches far from that range becomes hard to read. Too much line switching when lines are too short and too few breaks for the eyes when they’re too long.
Line-height, or leading as it’s usually referred to in print, is the pillar of vertical rhythm in typography. Understanding how it works is key to producing better typography for the web.
Too many designers or web developers that I’ve met think of
line-height as an isolated text feature. So they tend to set it based on what seems right. Consequently,
line-height is something that gets set without too much consideration. But
line-height is too important to be set so mindlessly. The length of the lines affects the
line-height. The longer the lines, the more space between them is required. Type size affects the
line-height. The larger it is, the larger the line-height should be as well.
Type color affects
line-height too. Darker and heavier type requires more space between the lines. And in the end, the typeface itself may affect it as well. As we’ve seen earlier, some typefaces seem larger than others. Some, mostly serifed typefaces, will seem heavier. Those will require more space between the lines too.
Now that you know that
line-height is very important and that it should never be considered as an isolated feature, let’s look at general best practices. For paragraphs, ideal
line-height is usually between 1.3 and 1.7. So a body text set at 16px should have a line-height from 21 to 26px. This will depend on the things mentioned earlier: typeface design, type size, weight etc.
There are some general best practices in typography but they’re never definite. As we saw with the line-height, we’re commonly presented with ranges that we should use. What to choose from that range takes time to learn. The eye needs time to get sharper in noticing these differences.
And so we come to what I call The Equilateral Triangle of a Perfect Paragraph. We’ve looked at type size, measure and line-height in isolation (as much as we could). By doing so, we already learned that these properties are interconnected. They can’t be considered in isolation and they never should be. That’s why an equilateral triangle is a perfect representation of a well-designed paragraph of text. For it, we need a good type size that matches the measure, which matches the line height. Get one of them wrong and your triangle will get skewed.
Unfortunately, I can’t give you definite numbers of a perfect paragraph as there are millions of combinations out there. But I can give you a few examples that will help you train your eye. Try to pay attention to the details and compare the type size, the lengths of the lines and the spacing between them.
In the example above, the text is set in Merriweather — an uncommonly large and heavy typeface. That’s why it’s set to 14px. The
line-height is, therefore, closer to the upper edge of the recommended range of 1.3 to 1.7. The paragraph above neatly fits 55 characters per line (also in the recommended range).
In the example above, the length of the lines is outside the recommended range of 55–75. It’s 84 on average, meaning that the bottom side of the triangle expands on both sides. The triangle is not equilateral anymore.
line-height in the example above is obviously too large. It’s set to 2 and very much outside the recommended range. The lines of text are too far apart. Unfortunately, this happens too often on the web. It seems like there’s a trend of setting type to a light gray color and applying a large line-height on top of it. It’s an attempt to get that clean, minimalistic style but it’s wrong. Texts like that, especially if long, are hard to read.
Fortunately, I don’t encounter this on the web too often. I still wanted to include it, so we cover all the possible options that can come out of this concept. The font size in the example above is way too large for the given line-height and length of the lines. Texts set like this are extremely hard to read.
Many of the students of the Better Web Type course have asked me to elaborate on this concept. And what’s the best way to illustrate how this concept works in action? A learning game that will help you sharpen your eyes. Presenting “The Equilateral Triangle of a Perfect Paragraph — A Web Typography Learning Game”.
The game consists of ten levels, each asking you to set one of the three properties: font size, line-height or the length of the lines. At the end, you get a score out of 100 and a chance to participate in the giveaway of the upcoming book Better Web Typography for a Better Web. Four, randomly chosen, highest scores will get a free book, which is based on the popular Better Web Type course.
I hope that as many people as possible come across this game and learn that
font-size, and length of lines always need to be considered together. Try to get the best result and challenge your friends. The more people know about this, the better the web typography will get.