asp.net.ph

Skip Navigation Links

WBR Element | WBR Object

Language References


Denotes a place where a word break can occur.

HTML Syntax

Remarks

The WBR element denotes a soft line break, or a break that happens only when needed, as when the browser window gets small enough.

It does not result in a line break; rather, it specifies a position within text where the browser may optionally break a line if necessary, sort of like the word wrap feature in most document editors.

Line breaks are normally not inserted into text contained within a NOBR block, which can produce some awkwardly long lines. If the text contains a <wbr> tag, however, it marks a location where the insertion of a line break is permitted.

NOTE: Only the start tag must be present. The element has no end tag.

Attributes

The <wbr> element has no attribute of its own, but supports global attributes common to all HTML elements.

Example

<nobr>This line of text will not break, no matter how narrow the window gets.
This one, however, will break after this word "however", <wbr> if the window gets small enough.</nobr>
This line of text will not break, no matter how narrow the window gets. This one, however, will break after this word "however", if the window gets small enough.
See Also

BR   NOBR



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note