Preformatted Text


The <pre> tag can be used to start a block of text that has been preformatted. This allows you to indent and set your own paragraph spacing and you do not need to use the <p> tag.

<h3>This is an example of preformatted text.</h3>
<pre>
There are three types of subatomic particles:
              1. proton
              2. neutron
              3. electron
</pre>

Display the results of this formatting


Return to HTML Tutorial Menu