asp.net.ph

Skip Navigation Links

NOBR Object

Language References


Renders text without line breaks.HTML 2, 3.2, 4, 4.01

HTML Syntax

Remarks

The NOBR element ensures that a line of text does not wrap to the next line. This is useful for words or phrases that must be kept together on one line.

However, note that if the line of text is long, it can extend beyond the margin of the browser window, so the user must use scrollbars to view the text.

Attributes

The <nobr> element has no attribute of its own, but supports global attributes common to all HTML elements.

NOTE: Only the start tag must be present. The element has no end tag.

Members

NOBR Members

Example

The following example uses the NOBR element to display a long line of text.

<nobr>Line breaks are not inserted into text contained within a <b>nobr</b> block. 
This tag should be used with care, since it can create <i>really</i> long lines of text.</nobr>
Line breaks are not inserted into text contained within a nobr block. This tag should be used with care, since it can create really long lines of text.
See Also

BR   WBR



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note