Language References
Specifies a CODE sample. | HTML 2, 3.2, 4, 4.01, 5 |
HTML Syntax
<code
class = classname
id = value
style = css properties
title = text
event = script
>
The CODE element displays a portion of text in the browser's default fixed-width font.
CODE is used for inline formatting. For large sections of code samples where block formatting is important, use the PRE or XMP elements to preserve the space characters and line breaks used in a program listing.
CODE Members
<p>The <code>onLoad</code> attribute for the BODY tag lets authors define an action that
occurs when the document has finished loading. For example,
<code>onLoad="function1 ( ); function2 ( ); return false;"</code>.
Notice that the <code>onLoad</code> CODE should always return <code>false</code>.</p>
which would render on a Web page as
The onLoad
attribute for the BODY tag lets authors define an action that occurs when the document has finished loading. For example, onLoad="function1 ( ); function2 ( ); return false;"
. Notice that the onLoad
CODE should always return false
.
KBD PRE SAMP TT XMP