HTML <nobr> (No Line Breaks) Tag

❮ Previous Reference Next ❯

Deprecated: Not Supported in HTML5.


<p><nobr>This really long text ... will not be broken.</nobr></p>

<p><nobr>With this element it is often important to hint where a line may be broken using <wbr>.<wbr> This element acts as a soft return.</nobr></p>

<span style="white-space: nowrap;">Long line with no breaks</span>


The <nobr> element make text without line breaks.

Break points for where text may wrap can be inserted using the <wbr> element or related workarounds.

While many browsers support this attribute but it is not part of any W3C standard.

Version: No standard support

Standard Syntax


Browser Support


Global Attributes

The <nobr> element also supports the Global Attributes in HTML.

Event Attributes

The <nobr> element also supports the Event Attributes in HTML.

More Examples

By Default CSS Value(s)

Most of the browsers will display the <nobr> element with the following by default value(s)

nobr {
	white-spacing: nowrap;
❮ Previous Reference Next ❯