Preformatted Text

The <pre> allows you to display text exactly as you type it in, such as in columns, tabbed across the page or an indented block of text. Here is an example:

<pre>

                 
             This is a column,           This is another column.
             This is the second Row      This is also the second row.

</pre>

I did not use any line breaks or paragraph tags in this document. <pre> has no additional attributes.

Assignment

Start a new web page. Call it pre.htm. Make it look like this:


Demonstration of the <pre> tag.
                                            X
                                           XXX
                                          XXXXX
                                          XXXXX
                                          XXXXX
                                          XXXXX
                                          XXXXX
                                         XXXXXXX
                                        XXXXXXXXX
                                       XXXXXXXXXXX
                                          XXXXX
                                          \\ //
                                            V

                                     OFF TO THE MOON!

Attach it to an email and send it to me.

Back to the outline.
1