<pre>
The <pre>
tag is used for content where whitespace of the source should be preserved in the document.
It is a paragraph-like tag that should be used in place of a <p>
, but cannot be used inside of a
<p>
tag.
If you need to preserve whitespace in a phrase inside of a paragraph, consider using the <c>
tag.
Syntax
Attributes
This tag has no attributes.Children
The following may appear as children:<cline>
TextParents
This element may appear as an immediate child of the following elements:<abstract>
<acknowledgement>
<activity>
<algorithm>
<answer>
<appendix>
<article>
<aside>
<assemblage>
<biographical>
<biography>
<case>
<chapter>
<claim>
<colophon>
<computation>
<conclusion>
<convention>
<corollary>
<data>
<example>
<exercise>
<exploration>
<fact>
<gi>
<headnote>
<hint>
<historical>
<identity>
<insight>
<introduction>
<investigation>
<lemma>
<li>
<note>
<observation>
<paragraphs>
<postlude>
<preface>
<prelude>
<problem>
<project>
<proof>
<proposition>
<question>
<remark>
<section>
<sidebyside>
<solution>
<stack>
<statement>
<subsection>
<subsubsection>
<task>
<technology>
<theorem>
<warning>
Examples
To explicitly specify the lines in your <pre>
block, use the <cline>
tag.