word break tag or wbr tag
The <wbr> (Word Break Opportunity) tag specifies where in a text it would be ok to add a line-break.
Tip: When a word is too long, or you are afraid that the browser will break your lines at the wrong place, you can use the <wbr> element to add word break opportunities.
<!DOCTYPE html>
<html>
<body>
<p>Try to shrink the browser window, to view how the very long word in
the paragraph below will break:</p>
<p>This is a veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryvery<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:
Try to shrink the browser window, to view how the very long word in the paragraph below will break:
This is a veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryvery longwordthatwillbreakatspecific placeswhenthebrowserwindowisresized.
Note: The wbr element is not supported in Internet Explorer 11 and earlier versions.
This is a veryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryveryvery
Note: The wbr element is not supported in Internet Explorer 11 and earlier versions.
Comments
Post a Comment