HTML Wbr Tag

HTML tag is used to specify a line break opportunity within an HTML document.

Without wbr tag, it is very difficult to read a long single word or a sentence. Without wbr tag, single long word can wrap or not wrap at all, it creates problem for the layout of the page.

Without tag, users will have to scroll right to read a long complete word or sentence.

The tag is new and introduced in HTML 5.

The wbr tag doesn't break line.

Difference between and
tag

The
tag forces a line break while tag only represents a line break opportunity. It only facilitate the browser to line break if necessary (for example at the end of page .


How to test tag

To test HTML wbr tag, write too many characters without wbr tag, it will enable a scroll bar for you. But if you write too many characters within wbr tag, it will not enable a scroll bar but break the line.


HTML wbr tag example

Test it Now

Output:

This is a world record for the largest word, a 45-letter word appears in a major dictionary pneumonoultramicroscopicsilicovolcanoconiosis

Here's what it looks like without using the wbr tag...
pneumonoultramicroscopicsilicovolcanoconiosis

It will look like this after using wbr tag.

pneumonoultramicroscopicsilicovolcaniosis

The tag supports global and event attributes in HTML 5.


Supporting Browsers

Element chrome browser Chrome ie browser IE firefox browser Firefox opera browser Opera safari browser Safari
Yes Yes Yes Yes Yes
Next TopicHTML Tags List




Contact US

Email:[email protected]

HTML wbr Tag
10/30