Example
Preformatted text:<pre>
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks
</pre>
Teach Yourself by BH24 HTML Editor Tool!
The <pre> tag is supported in all major browsers.
Definition and Usage
The <pre> tag defines preformatted text.Text in a <pre> element is displayed in a fixed-width font (usually Courier), and it preserves both spaces and line breaks.