HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

pre

Description

The pre element for HTML represents a block of preformatted text, in which structure is represented by typographic conventions rather than by elements.

Syntax

HTML

<pre attribute-name="attribute-value"></pre>

Attributes

Global

CSS

pre
{
    display: block;
    font-family: monospace;
    margin: 1em 0;
    white-space: pre;
}

Examples

1 · HTML

2 · CSS

3 · JS