Web page

How to hyphenate web pages

Latest version of Chromium based browsers has built in hyphenationarrow-up-right for many languages. The HTML elements should annotate the language using lang attribute. Then use the following css:

text-align: justify;
hyphens: auto;
-webkit-hyphenate-character: '';
Example webpage hyphenation

Firefox 97+ will have hyphenation support for Indian languages(Bug 1240277arrow-up-right)

For other browsers or old versions https://github.com/mnater/Hyphenopolyarrow-up-right can be used

Last updated