If even the most basic HTML guides assume you know things you've never heard of, this is where you should start.

I have a list of companies that would like to host your website. Please Visit that list. Thanks.


introduction
very basic information
what is important, and what doesn't matter
the basic page
HEAD and BODY
HTML Tags
META Tags
backgrounds - colors
backgrounds - images
pictures
links
pictures as links
email links
tables part 1
tables part 2
lining things up
frames part 1
frames part 2
frames part 3
what tools to use
putting it all together
making search engines love you
viewing your page as you work
making your page pay for itself
page counters
resources
how do they do that?
being sure it's right before you go public
my links
my sponsors
What NOT to do

Backgrounds - Colors

You have already seen the <BODY> tag.

You can include information in the <BODY> tag to override the default background color. (usually white or gray, depending on the browser program used)

There are 2 ways of describing background colors (this also applies to font colors):

The easy way is to just name the color you want.

The hard way, but the better way, is to define your color in terms of the amount of red, green, and blue content it has. This is better for 2 reasons:
  • Some older browsers won't recognise the color names.
  • You can be much more precise when defining your own colors.
However, I won't put much effort into explaining how to define your own colors, other than to say that they are defined as a # sign followed by a 6 digit number, with the first 2 digits representing the red component, the second 2 the green, and the third 2 the blue. The numbers are in base 16, so in addition to the digits 0 through 9, you also use the letters a through f. For examples of thousands of colors take a look at http://www.correlationsystems.com/colors

There's a page showing 140 color names, and their colors at: http://st-ives.net/dlv/html/colorsamples.html that you can use to select a color you like.

The way to define the color of your background is: <BODY BGCOLOR="GREEN">
Or: <BODY BGCOLOR="#00ff00">which means no red, as much green as possible, and no blue.

You should use only 1 body tag in your page. You don't need a new tag for each thing you want to define.




I have a list of companies that would like to host your website. Please Visit that list. Thanks.




BuyACar     Get paid to express your opinion    Free stuff    Accept credit cards on your website    Website hosts    HTML for beginners    Advertising on your website     Privacy statement