HTML <nobr> Tag
Last Updated :
26 Dec, 2023
The <nobr> tag is used to create a single line text, that does not matter how long the statement is, this tag is used with <wbr> tag. The created single-line statement brings the horizontal scroll to read the whole line. The <nobr> tag is the exact opposite of <br> tag. You can use the CSS white-space property as a replacement of this tag.Â
Note: <nobr> tag is not supported in html5.
Syntax:
<nobr> Statement </nobr>
Attribute:
This tag doesn’t contain any attribute. The below example illustrates the HTML <nobr> 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 < 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 1
- Edge 12
- Firefox 1
- Opera 15
- Safari 4
Share your thoughts in the comments
Please Login to comment...