Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <nobr> Tag

  • Last Updated : 03 Sep, 2019

The <nobr> tag is used to create a single line text, that does not matter how long the statement is, this tag used with <wbr> tag. The created single line statement bring the horizontal scroll to read the whole line. The <nobr> tag is exact opposite of <br> tag. You can use the CSS white space property as a replacement of this tag.

Syntax:

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

<nobr> Statement </nobr>

Attribute: This tag doesn’t contain any attribute.

Below example illustrates the HTML <nobr> tags:
Example:




<!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 <nobr> 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 <nobr> tag are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!