HTML <wbr> Tag

If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!

Description

The <wbr> HTML element is used for specifying a line break opportunity.
The <wbr> tag can be used on very long words or other long strings of text with no spaces. Without the <wbr> tag, these long strings of text could either wrap in strange place (making it difficult to read), or not wrap at all - inadvertently pushing the page layout to the side (again, making it difficult to read and view the document as intended).

Properties

Permitted Parents
Any element that accepts phrasing content
Content
None. It is an empty element.
Start/End Tags
Start tag: required, End tag: forbidden

Example

<p>The longest word in a major dictionary is: 
Pneumonoul<wbr>tramicroscopic<wbr>silicovol
<wbr>canoconiosis which contains 45 letters</p>

Attributes

None

Global Attributes

The <wbr> tag also supports the Global Attributes in HTML5

Event Attributes

The <wbr> tag also supports the Event Attributes in HTML5

Browser Support

The following table will show you the current browser support for the HTML <wbr> tag.

Desktop
Edge Chrome Firefox Opera Safari
791111.64
Tablets / Mobile
Chrome Firefox Opera Safari Samsung Webview
184123.214.4

Last updated by CSSPortal on: 30th September 2023