ⓘ pre – preformatted text # T
The
pre
element
represents a block of preformatted text, in which structure is
represented by typographic conventions rather than by
elements.
Permitted attributes #
- ⓘ
global attributes
- Any attributes permitted globally.
- aria =
#
- (detailed attribute description to come)
Additional constraints and admonitions #
-
The “width” attribute on the “pre” element is obsolete.
Use CSS instead. http://wiki.whatwg.org/wiki/Presentational_elements_and_attributes
Permitted parent elements #
any element that can contain
flow elements
Typical default display properties #
pre {
display: block;
font-family: monospace;
white-space: pre;
margin: 1em 0; }