Text

pre

Defines pre-formatted text. Text within this tag preserves spaces and line breaks. It is commonly used to display computer code because it preserves nesting indentations. It is usually rendered in a monospace font. Inline element

Syntax

<pre attributes> ... </pre>

Example

<pre>This     spaces       will      be preserved</pre>

Related tags

CSS Properties

HTML attributes

Search the Soup!