HTML 5: The Markup Language (ARIA Edition)

prepreformatted text # T

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

Content model #

Attribute model #

Element-specific attributes #

Tag omission #

A pre element must have both a start tag and an end tag.

Permitted contexts #

Typical default display properties #

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