HTML WBR Tag

HTML Wbr TagHTML Wbr Tag stands for Word Break Opportunity. HTML Wbr Tag specifies the location within a text where it would be acceptable to have a line break.

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 loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnngggggggggggggggggggggggggggggggg

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

S. No. Browser Supported(Yes/No)
1 Internet Explorer No
2 Firefox Yes
3 Google Chrome Yes
4 Opera Yes
5 Safari Yes

Tagged , , , , , , , , , , , , . Bookmark the permalink.