Codectionary / Developer documentation / HTML

<wbr>

The <wbr> (word break opportunity) element tells the browser where it is allowed to insert a line break if needed, without forcing one. It is useful for long unbroken strings like URLs or compound words that would otherwise overflow their container without any natural spaces to break on.

Syntax

A<wbr>very<wbr>long<wbr>word

Examples

Breaking a Long URL

Allowing a long URL to wrap gracefully instead of overflowing.

<p>Visit example.com/<wbr>a/<wbr>very/<wbr>long/<wbr>path/<wbr>that/<wbr>could/<wbr>overflow</p>

Breaking a Compound Word

Suggesting a break point in a long compound term.

<p>The word<br>super<wbr>cali<wbr>fragilistic<wbr>expialidocious is famously long.</p>

Best practices

  • Use wbr only for genuinely long, unbreakable strings that risk overflowing their container
  • Prefer CSS properties like overflow-wrap or word-break for general text wrapping behavior
  • wbr suggests a break point — it does not force one the way <br> does
  • Do not overuse wbr throughout regular prose; it is meant for edge cases like URLs and long identifiers

Browser compatibility

Support applies to the named feature, not every attribute or behaviour in this article. Versions refer to browsers, not operating systems.

<wbr>

Desktop

Chrome
Supported
From 1
Firefox
Supported
From 1
Safari
Supported
From 4
Edge
Supported
From 12
Opera
Supported
From 11.6

Mobile

Safari on iOS
Supported
From 3.2
Chrome for Android
Supported
From 18
Firefox for Android
Supported
From 4
Samsung Internet
Supported
From 1.0

MDN BCD record for this feature · MDN reference

Support history and limitations

Chrome

  • From 1

Firefox

  • From 1

Safari

  • From 4

Edge

  • From 12

Opera

  • From 11.6

Safari on iOS

  • From 3.2

Chrome for Android

  • From 18

Firefox for Android

  • From 4

Samsung Internet

  • From 1.0

MDN BCD 8.1.5 · Dataset built 2026-10-08 · Mapping reviewed 2026-10-21. These dates are not individual browser-test or claim-verification dates. Unknown means the data does not establish support.

HTML Living Standard

Specifications & further reading