Adding HTML Background Color with True HTML Color
Let’s begin by coloring our web page! This is done within the <BODY> tag itself. This is also where we can define a background image. Both background image and background color use different attributes. So let’s start with the background color tag.
Once again, we’ll Google “HTML Color Chart”. Now we’ll pick a color for our background:

I clicked the first page that showed up, and got this hexadecimal “HTML True Color Chart”:

I decided to go with 0099CC, so here’s how you make that your web page’s background:
<HTML>
<HEAD><TITLE>Background Color</TITLE></HEAD>
<BODY bgcolor=”#0099CC”>
My background is pretty.
</BODY>
</HTML>

In many cases, you may need to alter your text color to look better against the background. However, that’s how you set up a background color.
Keep in mind, when using hex colors for anything, you always precede the number with the pound sign (#). So font color=”#xxxxxx” or body bgcolor=”#xxxxxx”, it’s all the same - you must use the pound (#) sign before the color’s hex number.
If you like "HTML Background Color and Hex Color Chart,"
please consider linking to this article:


