Open In App
Related Articles

HTML 5 <wbr> Tag

Improve Article
Improve
Save Article
Save
Like Article
Like

The <wbr> tag in HTML stands for word break opportunity and is used to define the position within the text which is treated as a line break by the browser. It is mostly used when the used word is too long and there are chances that the browser may break lines at the wrong place for fitting the text.
Syntax: 
 

<wbr>

Note: The <wbr> tag is new in HTML5 and it does not require end tag.
Below examples illustrate the <wbr> tag in HTML 5:
Example 1: 
 

HTML




<!DOCTYPE html>
<html>
     
    <body>
        <h1>GeeksforGeeks</h1>
        <h2><wbr> Tag</h2>
        <!--  It is mostly used when the used word is too long and 
              there are chances that the browser may break lines at 
              the wrong place -->
          
<p>GFGstandsforGeeksforGeeksanditis<wbr>acomputerscienceportalforgeeks.</p>
  
    </body>
    
</html>                    

Output: 
 

Supported Browsers: 
 

  • Google Chrome 1
  • Edge 79.0
  • Firefox 1
  • Opera 11.6
  • Safari 4
Last Updated : 22 Mar, 2022
Like Article
Save Article
Similar Reads