TIL about the wbr html element
-
-
:spacecore: Hueyreplied to infinite love ⴳ last edited by
@trwnh If you want words broken up like this, but with hyphens at the breaks, you can use the soft hyphen character. It's
­
in HTML. -
nicolas ⁂replied to infinite love ⴳ last edited by [email protected]
@trwnh I wonder what is the difference with ­
Edit: Found this about it: https://jen4web.substack.com/p/wbr – basically, <wbr/> has no hyphens, so the use cases are fewer as it’s not really for use within words, at least in languages that use hyphens to break words across lines.
-
Copyright © 2024 NodeBB | Contributors