Designer at work

The <pre> tag

Preformatting permits you to design a text layout in a text editor and have the browser display the text exactly as you laid it out.

For example, this layout in Notepad ...

<pre>
This text is   written   using
        the pre tag ...
              the layout stays the same
			        in the browser as in the text editor
</pre>           

... is displayed like this in the browser:

This text is   written   using
        the pre tag ...
              the layout stays the same
			        in the browser as in the text editor

Attributes

width          set the number of characters across
               the window, if possible. 


The pre tag is also useful for forcing blank lines into a section of text. Like this: