Tell a Friend About Our Cool Software

The term white space refers to characters that take up space in a document
but do not actually display. They are the space, the tab, and the new line,
which causes subsequent text to move to the next line (the new line is
sometimes called the line feed or carriage return). HTML handles white
space in content by ignoring it. Well, not quite--any white space is simply
converted to a single space. This is sometimes referred to as white space
normalization. The white space can be a row of 10 spaces, a pair of new
line characters, several tabs, or any combination of these, and the resulting
display will have just a single space in the content.
Let's see this in action. The following HTML will display as a single line,
with one space between words, just as you would expect:
<p>one two three four five</p>
Because of the way HTML handles white space, the following HTML
will display exactly the same way:
<p>one
two three
four
five
</p>
White space normalization in HTML has two practical consequences: