HTML <pre> tag

Usage

Specifies pre-formatted text. Any text between the opening and closing tags will be displayed as-is, with all spaces and line breaks preserved.

Example

Code:

<pre>Notice how pre-formatted text
preserves the     spaces       and

line breaks</pre>

Output:

Notice how pre-formatted text
preserves the     spaces       and

line breaks

Required Attributes

  • none

Optional Attributes

  • none

Core Attributes