Sometimes you want to keep certain words together so that they’re not split over two lines. The way to do this is with a non-breaking space. In HTML the markup for a non-breaking space looks like this:
For example, the following words will wrap if they fall at the end of a line:
<p>The quick brown fox</p>
while this example, which uses a non-breaking space, will keep the words “brown” and “fox” together even if they fall at the end of a line:
<p>The quick brown fox</p>
Leave a Reply