HTML word break - how to use <wbr> tag

The HTML <wbr> tag is used to define a word break. It is usually used for a very long word to control where to insert the link break in the browser. The <br> tag serves similar purpose but the word will be treated as multiple words in <br> tag is used.

Internet Explorer does not support <wbr> tag.

Attributes

The tag supports the global and event attributes.

Examples:

<body> <p>This text is veryyyyyyyyyyyyyyyyyyyyyyy<wbr />yyyyyyyyyyyyyyylong</p> </body>

Related HTML tags:

  • <br> - used to define a line break