Note: In the above demo, the string "An extraordinarily long English word!" contains the hidden ­
(soft hyphen) character: An extra­ordinarily long English word!
. This character is used to indicate a potential place to insert a hyphen when hyphens: manual;
is specified.
Hyphenation rules are language-specific. In HTML, the language is determined by the lang
attribute, and browsers will hyphenate only if this attribute is present and the appropriate hyphenation dictionary is available. In XML, the xml:lang
attribute must be used.
Note: The rules defining how hyphenation is performed are not explicitly defined by the specification, so the exact hyphenation may vary from browser to browser.
If supported, hyphenate-character
may be used to specify an alternative hyphenation character to use at the end of the line being broken.