HTML - Tags - <wbr>

#146 of 147
wbr
Next xmp
Prev video

 <html>
 <body>
     <p>
         var encoded = System.Web.HttpUtility.HtmlEncode(html);
     </p>
     <p>
         var encoded = System.<wbr>Web.<wbr>HttpUtility.<wbr>HtmlEncode(html);
     </p>
 </body>
 </html>
 

The wbr element marks a word break opportunity; a position in the text where the browser can insert a word or line break.

A live example:


var encoded = System.Web.HttpUtility.HtmlEncode(html);


var encoded = System.Web.HttpUtility.HtmlEncode(html);


N of

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath