HTML <nobr> Tag

Advertisements


Description

The HTML <nobr> tag is used to instruct the browser not to break the specified text (such as the usual line wrap that occurs at the right edge of the browser window).

This is used with the <wbr> tag, <wbr> advises the extended browser when it may insert a line break in an otherwise nonbreakable sequence of text. Unlike the <br> tag, which always causes a line break, even within a <nobr>- tagged segment, the <wbr> tag works only when placed inside a <nobr>- tagged content segment and causes a line break only if the current line has already extended beyond the browser's display window margins.

Example:

<!DOCTYPE html>
<html>
<head>
<title>HTML nobr Tag</title>
</head>
<body>
<nobr>
This is a very long sequence of text that is
forced to be on a single line, even if doing so causes
<wbr />
the browser to extend the document window beyond the
size of the viewing pane and the poor user must scroll right
<wbr />
to read the entire line.
</nobr>
</body>
</html>
This is a very long sequence of text that is forced to be on a single line, even if doing so causes the browser to extend the document window beyond the size of the viewing pane and the poor user must scroll right to read the entire line.

Global Attributes

This tag supports all the global attributes described in - HTML Attribute Reference

Browser Support

This tag is available in Netscape 4 and higher version only.

ChromeFirefoxIEOperaSafariAndroid
NoNoNoNoNoNo

html_tags_reference.htm