That's what the <PRE> tag defines, preformatted
text. It's a container, and it's a very special one. The
<pre> tag causes whitespace on both sides of the
contained text, similar to a heading tag. The text is
displayed exactly as it was typed into the document with
all spacing and blank lines intact. See the example below.
<pre>
Remember the rule that whitespace doesn't matter.
Extra spaces between words, multiple returns, blank lines -- all of these
disappear in an HTML document, due to the structural nature of HTML.
Well, almost. There is an exception to this rule. In a preformatted text
block, whitespace does matter. Suddenly, the number of spaces between
words, tabs, and the blank lines between paragraphs, will be seen.
Here is some bold text using the <B> tag.
Here is some italic text using the <I> tag.
</pre>
|