<html>
<body>
<div style="max-width: 16em">
<p>
1. The Hobbit was written by J. R. R. Tolkien in 1937.
</p>
<p>
2. The Hobbit was written by
<nobr>J. R. R. Tolkien<nobr> in 1937.
</p>
<p>
3. The Hobbit was written by
<span style="white-space: nowrap">J. R. R. Tolkien</span>
in 1937.
</p>
<p>
<nobr>
4. The Hobbit was written by J. R. R. Tolkien in 1937.
</nobr>
</p>
</div>
</body>
</html>
The nobr element prevents the browser from inserting a line break.
Non-standard Use style="white-space: nowrap"
instead.
In this example, we want to prevent the browser from inserting a line break in the author's name.
A live example:
1. The Hobbit was written by J. R. R. Tolkien in 1937.
2. The Hobbit was written by
3. The Hobbit was written by J. R. R. Tolkien in 1937.
N of