HTML <wbr> tag
When writing in HTML, the <wbr> tag is an inline element that gives the browser an option to break a line in a block of text. It is useful for creating breaks in long words or addresses when a window is resized. The following sections contain information about this tag, including an example of it in use, as well as related attributes and browser compatibility.
Note: The <wbr> element is usually nested within opening and closing <nobr> tags.
Example of <wbr> code
<p>If you shrink the window enough, you should see the following
line break into smaller sections.</p>
If you shrink the window enough, you should see the followingline break into smaller sections.
longword thatwillbreak ifyou justkeepon shrinking thebrowserwindowuntil itgetssmaller andsmaller andsmaller andsmaller .
Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <wbr> tag does not have any unique attributes, it does utilize all of the standard attributes.
|All versions||Not supported||All versions||4.0+||11.6+||All versions|