The Pre-formatted Tag

The Preformatted Text Tag

<pre> </pre>
Creates text that retains all the formatting from the original text including multiple spaces, tabs, and line breaks (carriage returns). In addition, it converts the text to a monospaced font.

Example Code:
<pre>The     quick brown f o x

jumps over the
lazy dog.</pre>

The Result:

The      quick brown f  o  x 

jumps over the 
lazy dog.
See the Preformatted example

 

<Go Back

XHTML Basics Workshop
© 1996-2005