Home  »  HTML   »   pre

It stands for preformatted text. This element preserves spaces and line brakes in any condition. The text will be displayed as defined in the source.

HTML pre Example:

Edit Example

in real life, pre tag is not so useful for displaying text content. However, It’s more useful to show predefined code samples or debugging programming language outputs.

Related HTML Tags: