Sub topic 1
What makes a paragraph readable
Prerequisites
This chapter assumes you know what a font and a font size are, and that you can read basic HTML and CSS. You do not need to know any typography terms yet. Each one is defined when it first appears. If you can write a p rule in CSS and change font-size, you are ready.
Why paragraphs fail
Most body text on the web is set in a paragraph. A paragraph is a block of text made of several lines that wrap inside a column. When a paragraph is hard to read, readers rarely say why. They say the page feels dense, tiring, or messy, and they leave.
Three settings decide most of how a paragraph reads:
- Type size is the height of the letters, set in CSS with
font-size. - Line length is how wide the column of text is. Typographers call it the measure. It is usually counted in characters per line.
- Leading (pronounced "ledding") is the vertical space from one line of text to the next. In CSS it is controlled by
line-height.
The word "leading" comes from metal type. Printers placed thin strips of lead between rows of letters to push the lines apart. The name stayed after the metal went away.
The rest of this tutorial builds on one idea. These three settings are not separate. A change to one often means a change to another. This chapter introduces the model and shows how to spot a paragraph that has gone wrong. Later chapters give the numbers and the CSS in detail.
How the eye moves through a paragraph
Reading does not feel like a smooth glide, but it is close to one. Your eyes make short jumps along a line, pause, and jump again. At the end of a line they sweep back to the left edge (in left-to-right languages) and must land on the start of the next line.
That return sweep is where measure and leading matter most:
- If the line is very long, the eye travels a long way back. It can land on the wrong line, and the reader re-reads a line or skips one.
- If the line is very short, the eye makes the return sweep too often. Reading turns choppy, and the text breaks into fragments.
- If the lines sit too close together, the eye gets pulled toward the line above or below. The reader loses their place.
- If the lines sit too far apart, the paragraph stops looking like one block. Each line looks like a separate item, and the return sweep has farther to go.
So a readable paragraph is one where the eye can find the next line without effort. Type size, measure, and leading each help or hurt that.
Type size comes first
Type size is the starting point because the other two settings are measured against it. A leading value is a ratio of the font size. A comfortable measure is counted in characters, and characters are as wide as the type size makes them.
If the type is too small, no choice of measure or leading will fully rescue the paragraph. For body text on screens, browsers default to 16 pixels, and most designers start from there or slightly higher. In CSS, 1rem means "the root font size", which is 16px unless the user has changed it. Using rem keeps your text respectful of the reader's own browser setting.
body {
font-size: 1rem;
}Once the size is fixed, you set the measure and the leading to match it. Changing the size later changes how both of them look, so decide size first.
Line length: the measure
The measure is the width of a text column. You can describe it in pixels, but typographers prefer to count characters per line, because the same pixel width holds more characters at a small size and fewer at a large size. Character count describes what the reader actually experiences.
A common range for body text is about 45 to 75 characters per line, with roughly 65 often named as a good target. These numbers are guidelines from print and screen research, not laws. They are a good place to start, and Chapter 4 looks at the ranges in more detail.
In CSS you can express the measure directly with the ch unit. One ch is the width of the "0" character in the current font. It is not exactly the average letter width, but it is close enough to be a practical stand-in.
p {
max-width: 65ch;
}This rule says the paragraph can grow up to about 65 characters wide, and no wider. On a narrow phone screen the paragraph will be narrower than that, which is fine.
Leading: the space between lines
Leading is measured from one baseline to the next. The baseline is the invisible line that the letters sit on. Leading is not the gap between the bottom of one line and the top of the next. It is the full distance from baseline to baseline, which includes the height of the letters themselves.
Designers usually express leading as a multiple of the font size. A 16px font with 24px between baselines has a leading of 1.5. Common body text values fall between about 1.4 and 1.6, though the right value depends on the typeface and the measure.
In CSS, you set it with line-height. Write it as a number with no unit:
body {
font-size: 1rem;
line-height: 1.5;
}A unitless value is multiplied by each element's own font size. A heading inside the page then gets its own proportional spacing, instead of inheriting a fixed length that would be too large or too small for it. Chapter 9 covers this in detail.
The three settings work together
Here is the main idea of the whole tutorial. Measure and leading depend on each other.
The longer the line, the farther the eye travels on the return sweep, and the more space between lines it needs to find the right one. So a wide column wants more leading, and a narrow column can manage with less. Typeface also plays a part. Fonts with a tall x-height (the height of lowercase letters like "x") or wide letterforms look denser and usually want more leading too.
The next code sample shows the idea. A wide article paragraph gets a little more leading. A narrow caption gets a little less.
body {
line-height: 1.5;
}
.article p {
max-width: 70ch;
line-height: 1.6;
}
.caption {
max-width: 45ch;
line-height: 1.4;
}The numbers here are small adjustments around a base of 1.5. You do not need big swings. A shift of 0.1 is usually visible.
The diagram below shows how the settings connect.
A worked example: finding the problem
Suppose you open a page and the body text feels tiring. Here is the CSS behind it:
.content {
width: 100%;
}
.content p {
font-size: 1rem;
line-height: 1.1;
}On a wide monitor, this paragraph stretches across the whole window. A 1440px-wide screen can show well over 150 characters per line. The leading is 1.1, so the lines are packed tightly. The two problems multiply: a long return sweep onto lines that are nearly touching.
Fix them one at a time, and check the result after each change.
- Limit the measure with
max-width: 65ch. - Raise the leading to
1.5.
.content p {
font-size: 1rem;
line-height: 1.5;
max-width: 65ch;
}Notice that fixing only the leading would help, but a 150-character line is still too long. Fixing only the measure would help, but 1.1 leading is still too tight. Both fixes are needed.
Common errors
These mistakes show up again and again:
- Setting line-height with a unit.
line-height: 24pxorline-height: 1.5remonbodygets inherited as a fixed length. A heading with a 40px font size then gets 24px spacing and its lines collide. Use a unitless number. - Leaving the measure unbounded. Without a
max-width, text fills whatever container it is in. On wide screens that is far too long. - Using a fixed pixel width for the column. A
width: 600pxcolumn works on a desktop and overflows on a small phone. Amax-widthadapts to both. - Copying one leading value everywhere. A value that works for a 65-character paragraph may be wrong for a 40-character caption or for a different typeface.
- Judging only on your own screen. Check the text at several widths. Your usual window size hides the problems.
What the rest of this tutorial covers
The next chapters take each piece in turn. You will look at type size, measure, and leading separately, then at how they interact and how typeface changes the answer. After that come the CSS techniques, responsive adjustments for small and large screens, and the WCAG text spacing rules, which set a floor for how flexible your layout must be. A short chapter on vertical rhythm covers the space between paragraphs. The final chapter gives you a routine for checking a paragraph by eye and fixing it.
Summary
- A readable paragraph lets the eye find the next line without effort.
- Type size, measure, and leading are the three main settings.
- Measure is the width of the column, best counted in characters. A common starting range is about 45 to 75 characters.
- Leading is the baseline-to-baseline distance, expressed as a ratio of font size. A common starting range for body text is about 1.4 to 1.6.
- The settings affect each other. Longer lines usually need more leading.
- In CSS, use
max-widthinchfor the measure and a unitlessline-heightfor leading.
Exercise
A paragraph on your site runs 140 characters wide and has line-height: 1.2. Readers say they lose their place. Name the two settings to change, and give a starting value for each.
Show answer
Change the measure and the leading. Limit the line length with max-width: 65ch (anywhere from about 45ch to 75ch is a reasonable start). Raise the line-height to about 1.5, written as a unitless number. Both changes are needed, because a long line makes the eye's return sweep harder and tight leading makes it easier to land on the wrong line.
Exercise
Why is line-height: 1.5 better than line-height: 24px set on body?
Show answer
A unitless value is multiplied by each element's own font size, so headings and small text get proportional spacing. A fixed 24px length is inherited as-is by every child, so a large heading would have lines that are too close together, and small text could have lines that are too far apart.