The <wbr> Element

<wbr> suggests a word-break opportunity to the browser — a "soft hyphen" without the hyphen character itself. Useful for long URLs, camelCase identifiers, and compound words that browsers wouldn't normally break.

Without <wbr>

Visit the API docs at https://api-example-service-v2-production.region.us-east-1.amazonaws.com/v1/endpoints for the full list. On narrow viewports this long URL won't break well.

With <wbr>

Visit the API docs at https://api-example-service-v2-production.region.us-east-1.amazonaws.com/v1/endpoints — now the browser can break at any of these suggestions.

Other use cases

CamelCase identifiers:

UserAuthenticationManagerFactorySingleton

German compound nouns (hypothetical):

Grundstücksverkehrsgenehmigungszuständigkeitsübertragungsverordnung

<wbr> vs. alternatives

ApproachHyphen on break?Semantic?
<wbr>No (clean break)Yes — "break opportunity"
&shy;Yes (soft hyphen)Yes — "optional hyphen"
CSS word-breakNoNo — presentational
CSS overflow-wrapNoNo — presentational

Use <wbr> when you have specific break points in mind (URLs, identifiers). Use CSS word-break: break-all for catch-all cases where any character is a valid break point.