HTML Codes

HTML Codes > Logical Tags
previous page <SAMP> <KBD> next page

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

previous page <SAMP> <KBD> next page



Recommended: Link Popularity Software : WebPosition Gold : Google Cash : Arelis : Optilink : Search Engine Optimization Software : Search Engine Submission Software : Mike's Marketing Tools : Mike's Ecommerce Software : Search Engine Rankings : Link Popularity Checker : Cheap Domain Registration : Keywords