HTML <wbr> tag

Html <wbr> tag : Definition

HTML <wbr> tag stands for Word Break Opportunity tag and this tag is used to define the position within text where the browser may optionally break a line if necessary.



Html <wbr> tag example

<!DOCTYPE html>
<html>
<head>
  <title>HTML wbr tag example</title>
</head>
<body>
  <p>Shrink the browser window to see how the very long word in the paragraph below will break:</p>
  <p>This is a veryveryvveryveryveryveryvery<wbr>longwordthatwillbreakatspecific<wbr>placeswhenthebrowserwindowisresized.</p>
  


  <p><b>Note:</b> The wbr element is not supported in Internet Explorer 11 and earlier versions.</p>
</body>
<html>

Output:


 

Shrink the browser window to see how the very long word in the paragraph below will break:

This is a veryveryvveryveryveryveryverylongwordthatwillbreakatspecificplaceswhenthebrowserwindowisresized.

Note: The wbr element is not supported in Internet Explorer 11 and earlier versions.