Adding White Spaces

White spaces are blank spaces between things. They include:
For HTML documents, browsers usually ignore more than one white space in a row.
So, if you had this in your HTML file:


		Two tabs,       seven spaces,


and a couple blank lines.


It would come out like this:


Two tabs, seven spaces, and a couple blank lines.

Indenting

<dd> can be used in a list to indent each item in the list.

This is normal text.
<dl><dd>This is indented text.</dl>
This is normal text.
This is indented text.



Adding blank lines

<br> is a linefeed (like pressing return at the end of a sentence):

This is my first line,<br>and this is my second.
This is my first line,
and this is my second.



Spacing between paragraphs

<P> is like two carriage returns if you use it right after text. It was meant to set apart full paragraphs. Some people use </P> with it, but you don't really need it.

Two or more <P>'s in a row do the same thing as just one.

This is my first line,<P>and this is my second.</P>
This is my first line,

and this is my second.




Pre-formatted text

But, you don't always have to use those to add white space. You can use <pre> and </pre> instead. I used it in the first example above where there were multiple spaces between words.

Sometimes, it changes the font of the text, though. For example:

<pre>
Depending on your browser, the font of the text may be different.
</pre>
Depending on your browser, the font of the text may be different.



[Table of Contents] [More HTML] [Next Page] [Previous Page]

© 1996-2008 Suzanne Cook