For the Modem-bound

Graphics are a great way to add color to a site, but there are other ways that don't require images and therefore reduce the time it takes for the page to download and appear (not E V E R Y O N E has a direct, high-speed T1 link to the Internet you know). ;-)

Background Color

The first thing we need to go is get rid of that gray background on our web page.

In our test.html file, remember the gunk that started the body of the web page? It said:

<BODY>

One of its uses is to tell the browser what color to put in the background of the page. To do that, we add:

<BODY BGCOLOR="FFFFFF">

HUH??? How does FFFFFF translate into a white background??? You had to ask.

How Your Browser Squirts Color

You know the primary colors, right? The primary colors for light are red, green, and blue. These colors are different than the primary colors used when mixing paints. Your computer monitor, known as an RGB monitor (i.e., Red Green Blue), creates its thousands of colors by squirting differing levels of red, green, and blue at each little pixel (i.e., dot) on your screen.

1
Changing Colors

If you wanted some red on your screen, you'd tell the computer to squirt 100% Red, 0 Green, and 0 Blue. Not too hard, right?

Instead of "FFFFFF," here's what you'd put in the BGCOLOR gunk to make the background of the web page all red:

<BODY BGCOLOR="FF0000">

And here's what it would look like.

Woo-hoo. Pretty Ugly.

I think we'll stick with the white background instead.

Color Charts

There are a number of color charts available on the Internet showing the typical Internet palette of colors and their hex equivalents.

To find one, get on the web and try a search on:

RGB Hex Color Chart

2
The Joy of Hex

So FFFFFF gets you white and FF0000 gets you red.

Here are some other colors:

FFFFFF - white
FF0000 - red
00
FF00 - green
0000
FF - blue
000000 - black

See a pattern? Note these things:

The first two characters control how much red is squirted on the screen
The middle two characters control how much green is squirted on the screen
The last two characters control how much blue is squirted on the screen.

And:

00 means no color
FF means lots of color.

In fact, you can tell the computer to squirt up to 256 different levels of each color, from 00 to FF (that would be 255 in hexadecimal or base 16 - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F).

Anyway, to get the colors that will display correctly on both Windows and Macintosh computer monitors (i.e., the "Internet" palette we selected when we created our file), we stick to combinations of the following:

Amounts of Red - 00, 33, 66, 99, CC, FF
Amounts of Green - 00, 33, 66, 99, CC, FF
Amounts of Blue - 00, 33, 66, 99, CC, FF

Putting It All Together

Now you know about files, words, pictures, and color. Let's put it all together with Links.


Intro | Comm | Pub | Five Easy | Web Ed | Found | Squeezing | Standards | Animate | Epilogue

Files | Words | Pictures | Color | Links

 

All contents copyright (C) 1999-2007 Wanda Wigglebits. All rights reserved.