HTML <nobr> tag

Updated: 10/11/2017 by Computer Hope

HTML nobr tagWhen writing in HTML, 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, as well as related attributes, browser compatibility.

Note: This element is both proprietary and deprecated; its effects should be achieved using CSS.

Example code

<nobr>Example of a sentence that looks like it should wrap
	   at the end of the box, but is one long line instead.</nobr>

Example result

Example of a sentence that looks like it should wrap at the end of the box, but is one long line instead.

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair. While the <nobr> tag does not have any unique attributes, it will utilize all of the standard attributes until it is removed in a future version of HTML.

Compatibility

Internet Explorer Firefox Safari Opera Chrome
All versions * All versions * All version * All versions * All versions *

*Until it is removed in a future version of HTML

<br>, Browser, Code, Compatibility, Web design terms