Bart Veneman

Creator of Project Wallace, analytics for CSS. <noscript>-fanboy. Serverless clearfix engineer. I can lift node_modules twice my own weight.

Word-break opportunities

🔥 Have you heard about the <wbr> tag?

Use the <wbr> tag to define word break opportunities. If the text can be displayed on one line, it won’t break. If there’s not enough space, it will.#100DaysOfCode #CodeNewbie #HTML #Frontend #webdev #coding #programming #tips #tricks pic.twitter.com/FqRefhZpMp

— FrontEnd Dude | JavaScript (@frontenddude) July 13, 2020
<p>
If there isn't enough space
this paragraph will break here, <wbr>
if there is enough space, it won't.
</p>

Tags