TIL about the wbr html element
-
-
y6nh@im-in.spacereplied to trwnh@mastodon.social 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. -
nclm@mastodon.socialreplied to trwnh@mastodon.social last edited by nclm@mastodon.social
@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.
-
trwnh@mastodon.socialreplied to nclm@mastodon.social last edited by