HTML <wbr> (Word Break) Tag
Example
<p>http://this<wbr>.is<wbr>.a<wbr>.really<wbr>.long<wbr>.example<wbr>.com/With<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages<wbr>/deeper<wbr>/level<wbr>/pages</p>
Meaning
The <wbr> element is used to indicate a place where a line break can occur if necessary. which is used to keep text from wrapping. When used this way, <wbr> can be thought of as a soft line break in comparison to a <br> tag.
Notes & Tips:
- You can use CSS property white-space: nowrap; to an element.
- The ­ and ​ entities may provide useful functionality as well in some cases.
- This is an empty element and should be written as <wbr /> under XHTML.
Version: HTML5
Standard Syntax
HTML: <wbr>
XHTML: <wbr />
Browser Support
Status
Global Attributes
The <wbr> element also supports the Global Attributes in HTML.
Event Attributes
The <wbr> element also supports the Event Attributes in HTML.