HTML <wbr> tag

Definition and Usage

<wbr>(Word Break Opportunity) tag specifies the suitable positions for adding line breaks in text.

Tip:When words are too long, browsers may break them at incorrect positions. You can use <wbr> The element adds opportunities for word hyphenation.

Example

Text with Hyphenation Opportunities:

<p>To learn AJAX, you must be familiar with the XMLHttpRequest Object.</p>

Try It Yourself

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 that fully supports this attribute.

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
1.0 12.0 3.0 4.0 11.7