HTML WBR <wbr> Tag
0 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:
Share:
Comments
Waiting for your comments