Name

<WBR> — NN all IE all HTML n/a

Synopsis

<WBR>

End Tag: Forbidden

If you use the NOBR element to define content that should have no word wrapping or line breaks, you can use the WBR element to advise the browser that it can break up the content if the width of the browser window requires it. The locations of these provisional breaks are marked in the source code with the WBR element. In a sense, the NOBR and WBR elements give the author control over word wrapping of running content. Neither element is included in the HTML specification but have been long a part of both browsers’ HTML vocabulary.

Example

<NOBR>This is a long line of text that could run on and on, <WBR>forcing
the browser to display the horizontal scrollbar after awhile.</NOBR>

Object Model Reference

IE

[window.]document.all.elementID

Attributes

CLASS

ID

LANG

STYLE

TITLE

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.