When writing in HTML, the 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.

Example code

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 nobr element, it is displayed as one long line.

The above code, rendered in a web browser:

The nobr element is proprietary and deprecated. You should use the CSS style “white-space: nowrap” instead.

  • Example code
  • Attributes
  • Compatibility
  • Related information

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 element, it is displayed as one long line.

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 tag doesn’t have any unique attributes, it utilizes all of the standard attributes until it’s removed in a future version of HTML.

Compatibility


, Browser, Code, Compatibility, Container tag, Web design terms

  • HTML and web design help and support.