Note/Info The <wbr> tag is a new tag in HTML5.
HTML5 <wbr> tag
The HTML5 <wbr> tag stands for word-break opportunity.
This informs the browser that this is the position within the text where the browser can optionally break the word to the next line.
Normally, this is used for a very long word. You can place the sub-string of that long word inside this tag so that the browser can think of breaking the word from that position if it is required to do so.
Syntax:
<wbr>text…</wbr>
How Browser will display
INLINE.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
NA | NA | New tag in HTML5 |
Attributes used with <wbr> tag
NONE
Global Attributes
The <wbr> tag supports Global attributes.
Event Attributes
The <wbr> tag supports Event attributes.
Supporting Browsers
Related Tags
<br> & <pre> tags.