TIL the wbr element
POSTED ON:
<wbr>
is a HTML element that represents a word break opportunity—a position within text where the browser may optionally break a line, though its line-breaking rules would not otherwise create a break at that location.
It looks like this:
<!-- normal -->
<p>https://subdomain.somewhere.co.uk</p>
<!-- <wbr> -->
<p>https://subdomain<wbr>.somewhere<wbr>.co<wbr>.uk</p>
Is it useful? Meh.
I highly recommend reading the original post and instead, do line-breaks with CSS! (Or not. I"m not a cop.)
Via Deep Dive into Text Wrapping and Word Breaking
Related TILs
Tagged: mdn