next up previous contents
Next: In-Line Images Up: Basic HTML Programming Previous: Nesting Lists

Preformatted Text

The <PRE> tag generates text in a fixed width font and causes spaces, new lines and tabs to be significant. Often used for program listings.

Example:

<pre>
   This is preformatted       text.

New lines, spaces etc. are
significant.
</pre>

which when viewed in browser looks like:

   This is preformatted       text.

New lines, spaces etc. are
significant.
Figure: Preformatted Text



dave@cs.cf.ac.uk