InMotion Web Site Hosting
InMotion Hosting Home


Idocs Guide to HTML

<CODE>

Usage Recommendation
thumbs up use it

<CODE> indicates text that is the code for a program. <CODE> is rendered in a fixed width font.

this code produces this
This code opens the data file:

<P>

<CODE>
# open the listing file<BR>
unless ( open(MYDATA, "data.txt") )<BR>
{die "couldn't open data file\n"} 
</CODE>
This code opens the data file:

# open the listing file
unless ( open(MYDATA, "data.txt") )
{die "couldn't open data file\n"}

For lengthy code examples, most authors prefer <PRE ...>, which is much better for showing spacing and indentation.

Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.

InMotion Web Hosting Customer Support
M-F 8am - 7pm PST
213-239-0050

More information can be found at the InMotion Hosting Main Site