To set the font size:
<FONT SIZE=N>
N is a number between 1 (smallest) to 5 (largest).
This will probably
show different effects on different browsers, so you're better off using
the relative size setting, <BIG>, and <SMALL>.
To set the body and text color:
- <BODY BGCOLOR="#ffffff" TEXT="#000000">
- OR
- <BODY BGCOLOR=white TEXT=black>
- This sets the color to bright white, and the text to jet black.
To set the background to a tesselated image:
- <BODY BACKGROUND="imageDir/imageName.jpg" TEXT=navy>
Beginning an HTML page with a line end "\n" can sometimes make a difference
between that page's displaying or not.
In the HTML block, expliciting stating the file type:
<HTML Content-type: text/html>
can also be the difference between that page's displaying or not in some
browsers.
A subtle error in a FORM tag can cause enormous problems, as it might
well not be flagged as an error, by your server or browser. For example,
this error:
<FORM ENTYPE="multipart/form-data"
ACTION="/cgi-bin/getFile.pl"
METHOD="POST">
<INPUT TYPE="FILE" NAME="sillyFile" size="80">
Caused the file being uploaded to not upload at all. Tracing the problem took
days!
By the way. Did you notice the error?
The word ENTYPE is supposed to be ENCTYPE.
A silly error that still caused puzzlement.
When running a CGI script, make sure to run it with a URL:
http://myDomain.org/rootDir/subDir/script.pl
If you instead just open the file:
/var/www/rootDir/subDir/script.pl
Your browser will politely ask you how you want to open it, instead of running
it. This can be very frustrating.