asp.net.ph

Skip Navigation Links

CODE Element | CODE Object

Language References


Specifies a CODE sample.HTML 2, 3.2, 4, 4.01, 5

HTML Syntax

Remarks

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.

Members

CODE Members

Example

<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.
See Also

KBD   PRE   SAMP   TT   XMP



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note