Learn HTML Code Tutorial Reference Guide

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




 

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   Privacy Policy   |   About
Copyright ©1997-2002 Idocs and ©2002-2014 HTML Code Tutorial