HTML <nobr> Tag

Last Updated : 12 Jul, 2025

The HTML <nobr> tag prevents the enclosed text from wrapping onto a new line, keeping it all on a single line. However, it is deprecated and should be replaced with CSS's white-space: nowrap property.

Note: tag is not supported in html5.

Syntax:

 Statement 

Attribute:

This tag doesn't contain any attribute. The below example illustrates the HTML tags: 

Example: 

HTML
<!Doctype html>
<html>

<head>
    <title>HTML nobr Tag</title>
    <isindex prompt="Search" />
    <style>
        h1 {
            color: green;
        }
    </style>
</head>

<body>
    <center>
        <h1>GeeksforGeeks</h1>
        <h4>HTML &lt;nobr&gt; tag</h4>
        <nobr>
            Articles that need little
            modification/improvement
            from reviewers are published first.
            To quickly get your
            articles reviewed, please
            refer existing articles, their
            formating style, coding style,
            and try to make your close
            to them.
        </nobr>
    </center>
</body>

</html>

Output:

Supported Browsers:

The browsers supported by HTML tag are listed below:

Comment