<pre>
The <pre> element contains text for which all line breaks and
spaces are preserved. It is typically presented in a monospaced font. Do not use
<pre> when a more semantically specific element is appropriate, such as
<codeblock>.
Content models
See appendix for information about this element in OASIS document type shells.
Inheritance
- topic/pre
Example
This section is non-normative.
The following example will preserve all line breaks and white space.
<pre>
MEMO: programming team fun day
Remember to bring a kite, softball glove, or other favorite
outdoor accessory to tomorrow's fun day outing at Zilker Park.
Volunteers needed for the dunking booth.
</pre>MEMO: programming team fun day Remember to bring a kite, softball glove, or other favorite outdoor accessory to tomorrow's fun day outing at Zilker Park. Volunteers needed for the dunking booth.
Content model
(Text | <boolean> | <cite> | <keyword> | <ph> | <q> | <term> | <text> | <tm> | <xref> | <state> | <data> | <data-about> | <foreign> | <unknown> | <draft-comment> | <fn> | <indextermref> | <indexterm> | <required-cleanup>)*
Contained by
<abstract>, <body>, <bodydiv>, <dd>, <desc>, <div>, <draft-comment>, <entry>, <example>, <fig>, <figgroup>, <fn>, <itemgroup>, <li>, <linkinfo>, <lq>, <note>, <p>, <section>, <sectiondiv>, <stentry>
- Text
<boolean><cite><data><data-about><draft-comment><fn><foreign><indexterm><indextermref><keyword><ph><q><required-cleanup><state><term><text><tm><unknown><xref>
Contained by
<abstract><body><bodydiv><dd><desc><div><draft-comment><entry><example><fig><figgroup><fn><itemgroup><li><linkinfo><lq><note><p><section><sectiondiv><stentry>
Inheritance
- topic/pre
The <pre> element is a base element type. It is defined in the topic module.
Attributes
The following attributes are available on this element: Universal attribute group, Display attribute group, outputclass, xml:space, and spectitle.