Yes, you can. It inserts a line-break, which is also whitespace. In HTML, line-breaks and other forms of whitespace are ignored so do not render.
Something of note though, a line-break will introduce a space character.
<p>A quick brown foxjumps over the lazy dog</p>
renders as we see it above.
A quick brown foxjumps over the lazy dog
Now if we insert a line-break,
<p>A quick brown fox
jumps over the lazy dog</p>
it renders as,
A quick brown fox jumps over the lazy dog
Also note,
<p>A quick brown fox
jumps over the lazy dog</p>
still renders as,
A quick brown fox jumps over the lazy dog
Something else to consider, as well is multiple space characters in text are ignored, but for one of them.
<p>A quick brown fox jumps over the lazy dog</p>
renders, as,
A quick brown fox jumps over the lazy dog
We have two ways of inserting extra space (known as padding)
- Use the none-breaking-space entity,
which can be repeated and which renders as a space character; or,
- use a
<span></span>
element which can be given left and right margins.
If your browser will not recognize the margins, given SPAN is an inline element, then declare it an inline-block.
Using repeated entities can get messy and hard to decipher, so the latter approach is probably the better choice.
in real terms is meant to be inserted between two words we do not want separated due to line wrapping, such as a proper name.
Wee Gillis
Should those words appear near the end of a line, both words will be wrapped to the next line.