HTML Hyphen and Word-Break Control
Web browsers usually do fine when it comes to hyphenating content at word breaks — until an unusual situation arises.
Word breaks in this article means words that break at the end of a line of text — the beginning of the word is published at the end of the line and the ending of the word is published at the beginning of the next line.
Unusual situations include narrow columns, extra long words, and words that should not break at their hyphen.
There are several simple things you can do that give you more control over what browsers do with your content when it comes to hyphens or lack thereof. Every method mentioned in this article is included in a box with examples near the end of the article.
The following are in addition to the regular keyboard hyphen.
A non-break hyphen that should not allow a word break.
A soft hyphen, a hyphen that appears only when a word breaks right there.
A hyphenless word break.
Without any of the above, the browser hyphenates according to its defaults and user-specified preferences.
The online article talks about each of the above. And it has examples for easier understanding.
Thank you for reading Possibilities.
Recent additions to the Willmaster Blog and Library
We suggest and recommend only what we believe is of value. As remuneration for the time and research involved to provide quality material, we sometimes use affiliate links. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.
Addresses, URLs, and Subscription Maintenance:
Click to unsubscribe:
To subscribe: https://www.willmaster.com/possibilities/
Changing email address: First unsubscribe your old address, then subscribe with your new email address.
Will Bontrager Software LLC, Publishers
P.O. Box 153
Lowell, IN 46356
Copyright 2022 Will Bontrager Software LLC
Please Note: We do not make our mailing lists publicly accessible. Privacy is precious. We respect yours.
To remove your subscription (to unsubscribe), use this link: