To keep things a little cleaner I am only going to write what is in the <BODY> tags. I will omit the <HTML>, <HEAD> & <TITLE> tags. Needless to say, keep these in your document.
Type something really cool.
<BODY> Something really cool </BODY>
Something really cool
Whenever you make a change to your document, just save it, then hit the Reload button on your browser. In some instances just hitting the reload button doesn't quite do the trick... in that case hit Reload while holding down the SHIFT key.
I think the first thing we are going to learn is how to change background colors.
<BODY BGCOLOR="#CCFFCC"> Something really cool </BODY>
Something really cool
CCFFCC is computerese for light green. Here are a few more.
In 256 color mode Netscape dithers all images to these colors. Additionally if a background color is specified that is not one of these colors, then Netscape will usually pick the closest of these colors to use. Although it's not overly important to understand how browsers and colors work together at this point in time, you may want to stop back after the lessons and learn about Netscape's infamous 216 colors.
You can specify a background image instead. (Note, the image should be in the same folder as your HTML file. More on this below.)
<BODY BACKGROUND="swirlies.gif"> Something really cool </BODY>
In order for the image to show up, the browser has to be able to find it. For now, we want the image to be in the same folder as your HTML document (page1.html). The easiest way to do this is to right click on the swirlies image above and choose Save Image As (or some variant thereof). Browse to wherever you put page1.html and save the image there. Later we'll get into this stuff in a little more detail.
It's probably pretty obvious that the image is tiled. If you use a long skinny image you can get an effect like this...
<BODY BACKGROUND="bluebar.gif"> Something really cool </BODY>
FAQ: I've seen pages where the background is fixed and the page just scrolls over it. How can I do that?
A: Simple... add BGPROPERTIES=FIXED to the BODY tag...
<BODY BACKGROUND="mybackground.gif" BGPROPERTIES=FIXED>
Keep in mind this little doodad is Internet Explorer specific. That is, only people using Internet Explorer or IE based browsers will be able to see it. Here is an example.
|<< BACK NEXT >>|