Skip to content
Loremly
Design

Typography Basics for Beginners

A simple guide to font size, line height, line length, contrast and font pairing, plus how placeholder text helps you test your type choices.

Loremly Team

· 4 min read

Typography is how you style and arrange text so it's easy and pleasant to read. For most websites, a few basics do most of the work: a good font size, comfortable line spacing, sensible line length and clear contrast. This guide explains each one in plain words, with common starting points you can try.

Font size

Font size is how big your letters are. On the web, it's usually set in pixels (px) or rem (a unit based on the browser's default size).

For body text, 16px is a common minimum. Many sites go a little bigger, like 17px or 18px, especially for long articles. Text smaller than that can be hard to read on phones and for people with weaker eyesight.

Keep in mind that fonts at the same size can look very different. One font at 16px may look as large as another at 18px. So treat numbers as a starting point and check with your own eyes.

Line height

Line height is the space from one line of text to the next. In CSS it's often written as a plain number, like 1.5, which means 1.5 times the font size.

For body text, a line height of around 1.4 to 1.6 is common. Too tight, and lines feel crowded. Too loose, and the eye loses its place when jumping to the next line.

Headings are different. Big text usually looks better with tighter line height, often around 1.1 to 1.3. Try a few values and see what looks balanced.

Line length

Line length is how many characters fit on one line. If lines are very long, it's tiring to find the start of the next one. If they're very short, the eye has to jump back too often.

A common guideline is 45 to 75 characters per line for body text. That includes spaces and punctuation. On wide screens, you can control this by setting a maximum width on your text column.

In CSS, the ch unit (roughly the width of one character) makes this easy. Something like max-width: 65ch keeps lines in a comfortable range.

Contrast

Contrast is the difference between your text color and the background color. Low contrast, like light gray text on a white background, can look stylish but is hard to read.

A few simple habits help:

  • Use dark text on a light background, or light text on a dark background.
  • Be careful with gray body text. Make sure it's dark enough.
  • Don't put text directly on busy photos without a solid or shaded area behind it.
  • Use a contrast checker tool to test your colors against accessibility guidelines (the WCAG rules many teams follow).

Font pairing

Font pairing means choosing fonts that work well together. For most projects, one or two fonts are enough. More than that can make a page look messy.

Some easy ways to start:

  1. Use one font family in different weights. This is the simplest choice and almost always looks tidy.
  2. Pair a heading font with a body font. For example, a bold display font for headings and a calm, readable font for paragraphs.
  3. Look for contrast, not conflict. Two fonts that are very similar can look like a mistake. Two that are clearly different, like a serif and a sans serif, often pair well.

A serif font has small strokes at the ends of letters. A sans serif font doesn't. Both work fine for body text on modern screens.

Hierarchy and white space

Hierarchy is how you show what's most important. Readers should be able to tell headings, subheadings and body text apart at a glance.

You mostly do this with two tools:

  • Size. Bigger text gets noticed first.
  • Weight. Bold text stands out more than regular text.

You don't need many levels. A main heading, a subheading and body text cover most pages. Add a small style for captions or labels if you need it.

White space is the empty space around and between things. It's not wasted space. Space between paragraphs, around headings and in the margins makes text easier to scan. A common trick is to put a little more space above a heading than below it, so the heading clearly belongs to the text that follows.

Quick reference

Here are the common starting points from this guide in one place. They are guidelines, not strict rules.

Setting Common starting point
Body font size 16px or larger
Body line height About 1.4 to 1.6
Heading line height About 1.1 to 1.3
Line length About 45 to 75 characters
Number of fonts 1 or 2

Test your type with placeholder text

You can't judge typography with a single word like "Heading" or "Text here". You need realistic blocks of text: full paragraphs, a few headings and maybe a list.

Placeholder text is perfect for this. It fills your layout with text that has a natural mix of word lengths, so you can see how your choices really look. Here's a simple way to test:

  1. Generate four or five paragraphs with the Lorem Ipsum generator. Try "mixed" lengths so you see short and long paragraphs together.
  2. Use the HTML Lorem Ipsum generator to get headings, lists and quotes in real HTML tags. Paste it into your page and your CSS styles it right away.
  3. Check the page on a phone and on a wide screen. Look at line length, spacing and how headings stand out.
  4. Adjust one setting at a time, then look again.

If Latin filler makes it hard to judge how text "feels", switch to readable English. Real-looking sentences can show you rhythm and spacing more clearly.

Start simple

You don't need to master typography all at once. Pick one readable font, set body text to at least 16px, use a line height around 1.5 and limit your line length. Then fill the page with realistic placeholder text and adjust what looks off. Small changes to these basics make a big difference.

Share

Written by

Loremly Team

We build Loremly, the free Lorem Ipsum and placeholder image generator, and write about design and development workflows.

All posts