HTML 4.0 Logo Reader Icon OEB 1.0 Logo <code>Code

This tag displays the enclosed text in a monospace font, as sample computer code. Unlike the <pre> tag, the <code> tag does not affect handling of white space within the enclosed text, nor does it introduce a “block” (paragraph-like) boundary.

In version 1.0 of the Microsoft Pocket PC Reader, this tag is ignored.

Attributes

class, id, lang, style, title (ignored)

Sample

Code Sample diagram

Sample Code

<h4>Code</h4> Displays the enclosed text in a monospace font, <code>as sample computer code.</code> Unlike the &lt;pre&gt; tag, the &lt;code&gt; tag does not affect the handling of white space within the enclosed text, nor does it introduce a &ldquo;block&rdquo; or paragraph-like boundary. <hr width="30%" align="center" /> <br /> <code>&lt;code&gt; makes things look like a screen full of source code.</code>

© 2000 Microsoft Corporation. All rights reserved. Terms of use.