HTML <nobr> tag
When writing in HTML (hypertext markup language), the <nobr> tag was used to designate that a section of text should not wrap automatically. The following sections contain information about this tag, including an example of it in use, and related attributes, browser compatibility.
The nobr element is proprietary and deprecated. You should use the CSS (cascading style sheets) style "white-space: nowrap" instead.
Example code
<p><nobr>Here is an example of a very, very long line of text that normally would wrap at the end of the line. Instead, because it is contained in a <b>nobr</b> element, it is displayed as one long line.</nobr></p>
The above code, rendered in a web browser:
Attributes
All HTML tags support standard attributes that define the settings of an HTML element. Unlike other HTML tags, the <nobr> tag has no unique attributes.
Compatibility
Edge | Internet Explorer | Firefox | Safari | Opera | Chrome |
---|---|---|---|---|---|
Not Supported | Not Supported | Not Supported | Not Supported | Not Supported | Not Supported |
<br>, Browser, Code, Compatibility, Container tag, Web design terms