HTML <pre> Tag


Preformatted text is defined by the HTML <pre> tag, which preserves both whitespace and line breaks in the HTML content.

The <pre> element is another frequent name for this tag.

Syntax

Example

Preview

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
<pre> Yes Yes Yes Yes Yes