What is wrong with this code that hyphenations don't work for lang="en"
?
h1 {
font-size: 2em;
hyphens: auto;
}
div {
max-width:200px;
background: aqua;
}
<div>
<h1 lang="en">Kindofverylongheadlineevenbiggerthanimagined</h1>
<h1 lang="en">Internationalization</h1>
<h1 lang="de">Kindofverylongheadlineevenbiggerthanimagined</h1>
</div>
You must specify a language using the lang HTML attribute to guarantee that automatic hyphenation is applied in that language.
2.browsers will hyphenate only if this attribute is present and the appropriate hyphenation dictionary is available
3. It is possible that you are setting correct bounds for your text container. – Robbie