Skip to content
HTML.ONE
Home HTML Elements

HTML <pre> Element

Represents preformatted text, preserving whitespace and line breaks.

Example

<pre>Line 1
  Line 2</pre>

Further reference

HTML Living Standard

Live preview