Skip to content
BENIBIX Learn

Hyphenation

Design🔤 TypographyType Spacing

Also known as Automatic Hyphenation, Soft Hyphen

Splitting a long word at the end of a line, with a hyphen.

Think of it like

It is like cutting a long loaf to fit a short bag. You cut it at a clean spot.

Example

A narrow news column in German turns hyphenation on. Long words split cleanly and the holes between words close up.

Why it matters

Without it, thin columns and text that runs edge to edge fill with wide gaps.

Definition

Hyphenation is splitting a long word across two lines, with a hyphen at the end of the first part. A word may only break at set points, such as between its sounds. It helps most in narrow columns and justified text, where big gaps would open up. Apps use a word list for each language to find the breaks. A web page has to say its language, or the browser will not do it.

Example code

html
<html lang="en">
<style>
  p { hyphens: auto; }
</style>
The browser may now split long words, because it knows the page is in English.
Below, a long word splits with a hyphen, so the gaps on that line close up.

Common mistake

Turning on hyphens without setting the page language. The browser then does not split any words at all.

Key takeaways

  1. 1
    Break at set points. Only where the language allows.
  2. 2
    Needs the language. The page must say which one.
  3. 3
    Not too many. Avoid hyphens on many lines in a row.

Learn it properly