NOBR <nobr> Tag

by Jai 04-Aug-19

0 158


The <nobr> tag is applied on text to not to break single line into multiple lines for users to scroll down to see the whole content. This element must be used in HTML.

When text goes outside the screen, the browser will immediately break the text to the next line. If we use  the <nobr> tag then it will not permit the browser to break the line.

The <nobr> tag is a non-standard element. It work in some browsers but its use is discouraged and can be removed at any time. Use the CSS white-space property instead.

Program:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>nobr Tag </title>
</head>
<body>
  <h2>Nobr Tag Example</h2>
<nobr>
Codingtag is the E-learning website covering all aspects of technical and nontechnical tutorials including advanced programming, web Development languages, current affairs and Technical interviews question and Answers on C, C++, Python, PHP, CSS, AngularJS, MongoDB and on all latest trending technologies.
</nobr>
</body>
</html>

Output:

NOBR <nobr> Tag


Share:


Comments

    Waiting for your comments

Leave a Reply