In other words we can say that, whenever a word is too long and there are chances that a browser will break the word and will not be able to show the complete word in one line we use the Wbr Tag so that if the browser has to break the word it will break the word at the Wbr Tag location.
Note: Wbr Tag in new in HTML 5.
HTML 5 Wbr Tag is an empty tag and does not have any closing Wbr tag.
HTML Wbr Tag Syntax
Some really <wbr> long text
HTML Wbr Tag Example
|HTML Wbr Tag Code||Output|
This is just a really loooooooooooooooooooooooo oooooooooooooooooooooooooooooooooooo <wbr />ooooooooooooooooooooooooooooooooo ooooooooooooonnnnnnnnnnnnnnnnnnnngggggg gggggggggggggggggggggggggg text
|This is just a really loooooooooooooooooo
In the HTML Wbr Tag example above, if the browser has to break the word “long” (which I have written in a very long way) then it will break the word at locations where it encounters the HTML Wbr Tag.
HTML Wbr Tag Supporting Browsers