An HTML tag used to indicate places where a useragent may elect to break a long word for rendering purposes.
Questions tagged [wbr]
15 questions
179
votes
13 answers
Soft hyphen in HTML ( vs. )
How do you solve the problem with soft hyphens on your web pages? In a text there can be long words which you might want to line break with a hyphen. But you do not want the hyphen to show if the whole word is on the same line.
According to comments…

Pontus
- 2,769
- 4
- 20
- 13
31
votes
5 answers
In HTML, is it possible to insert a word wrapping hint?
Imagine I have a long, multi-word line of text in a DIV:
Hello there, dear customer. Please have a look at our offer.
The DIV has a dynamic width. I want to word wrap the above text. Currently, the wrapping happens on a word boundary which…

Krystian Cybulski
- 10,789
- 12
- 67
- 98
6
votes
1 answer
Unicode alternative for tag
I am looking for Unicode solution which will be an alternative to tag in following regards:
Allowing line breaks at given position.
Browser can find string in the page even when 'broken' apart.
When copied from page, these characters will not…

Oliver Gondža
- 3,386
- 4
- 29
- 49
5
votes
4 answers
lxml and tags
By default lxml doesn't understsand the wbr tag, used to add word-breaks in long words. It formats it as when it should be formatted simply as , similar to the br tag.
How do I add this behavior to lxml?

bukzor
- 37,539
- 11
- 77
- 111
4
votes
1 answer
Is the element semantic HTML? What about in a microdata context?
In short, this is bad web development and UX:
But solving it by using CSS3 word breaking (code & demo) can lead to an 'awkward whitespace' situation, and strange cut-offs — here's an example of both:
Maybe it's not such a big deal, and the UX…

Baumr
- 6,124
- 14
- 37
- 63
2
votes
1 answer
WBR Alternative in XHTML
I've been using tags in the thead cells for my tables, so I can control where browsers break long words. This works great, but its not XHTML compliant. What is the best alternative to using the wbr tag, that is valid XHTML? Example:
…