HTML Background Color and Hex Color Chart

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:

Google HTML True Color Chart

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

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>

HTML Background Color Example

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:

Leave a Reply




(spam protection)
Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Subscribe without commenting

« Previous
« Website Interface And Usability | Up Top | Well Designed Headings To Improve Usability Of Website »
Recent Comments
James Smith: Wow… I’m stunned you could do that.
e-orchids: very nice article thanks for posting….. E-orchids
Html Meta Tag: It’s an enormous advantage to have read your post. In fact, I learn a lot from it. It was certainly...
Medical Web Experts: Nice post!!! Really an amazing observation regarding the advantages of flash! Flash has been...
Web Tasarım: This is very nice post. thank you.
Web Design Development: Testing comment.