HTML WBR Tag || WBR Tag in HTML
×

HTML WBR <wbr> Tag

2285

The HTML WBR <wbr> (word-break opportunity) element is used to define a word break opportunity (line breaking) in a string of text. If the sentence is too long, then the container will be broke for proper displaying.

It is particularly useful when you wish to define word-break opportunities in a long unbroken string of text that might otherwise break improperly.

Syntax:

<wbr> Text will go here </wbr>

Program:

<!DOCTYPE html>
<html>
  <head>
   <title>HTML WBR Tag</title>
  </head>
   <style>
    .div-1
    {
     width: 30%;
    }
   </style>
  <body>
   <h2>Example of Wbr Tag</h2>
    <div class="div-1">
   <p>
   Lorem Ipsum is simply dummy text of the printing and typesettingtypetypesettingtypetypesettingtype<wbr>typesettingtypesettingtypesetting<wbr>typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s,
   </p>
    </div>
   </body>
</html>

Output:




Best WordPress Hosting


Share:


Discount Coupons

Get a .COM for just $6.98

Secure Domain for a Mini Price



Leave a Reply


Comments
    Waiting for your comments