What is Preformatted Text

tag is the pre-formatted tag.

The line breaks, spaces, and character widths within the  tag are preserved by browser.



The line breaks, spaces, and character widths within the  tag are not preserved by browser.

<!DOCTYPE HTML>
<html>
<body>
<pre>
This is
preformatted text.
It preserves both spaces
and line breaks and shows the text in a monospace font.

<p>
This is not
preformatted text.
It does NOT preserve the spaces and line breaks.