HTML <wbr> tag
- Previous page <video>
- Next page HTML elements (alphabetical order)
Definition and usage
<wbr>
(Word Break Opportunity) tag specifies suitable positions for line breaks in text.
Tip:When words are too long, browsers may break them at incorrect positions. You can use <wbr>
Elements add opportunities for word hyphenation.
Example
Text with hyphenation opportunities:
<p>To learn AJAX, you must be familiar with the XML<wbr>Http<wbr>Request Object.</p>
Global attributes
<wbr>
The tag also supports Global attributes in HTML.
Event attributes
<wbr>
The tag also supports Event attributes in HTML.
Browser support
The numbers in the table indicate the first browser version to fully support this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
1.0 | 12.0 | 3.0 | 4.0 | 11.7 |
- Previous page <video>
- Next page HTML elements (alphabetical order)