🔤Hyphenation
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
Example code
html
<html lang="en">
<style>
p { hyphens: auto; }
</style>Common mistake
Key takeaways
- 1Break at set points. Only where the language allows.
- 2Needs the language. The page must say which one.
- 3Not too many. Avoid hyphens on many lines in a row.