next up previous
Next: In-Line Images Up: Basic HTML Coding 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 Marshall
9/28/2001