HTML Background Code

HTML background code can be added into your web site by editing the actual html code. This will create give color to your background of your web site web page.

Lets look at some sample html code.

Below is the  for a web site web page that has a white back ground.

<html>
<head>
<title>My Title</title>
</head>
<body bgcolor=”FFFFFF” text=”black” link=”blue” vlink=”purple” alink=”red”>
<p>Webpage Content</p>
</body>
</html>

To make the background white you need to edit the body tag that has the bg color background settings.

Below is the code snippet I am referring to.

<body bgcolor=”FFFFFF” text=”black” link=”blue” vlink=”purple” alink=”red”>

Lets say we want our background color changed to blue we then need to edit the body tag code to look like the following.

<body bgcolor=”0066CC” text=”black” link=”blue” vlink=”purple” alink=”red”>

So once we have made the changes our overall html code would like:

<html>
<head>
<title>My Title</title>
</head>
<body bgcolor=”0066CC” text=”black” link=”blue” vlink=”purple” alink=”red”>
<p>Webpage Content</p>
</body>
</html>

1. Red background html example:

<body bgcolor=”FF0000” text=”black” link=”blue” vlink=”purple” alink=”red”>

2. Black background html example:

<body bgcolor=”000000” text=”black” link=”blue” vlink=”purple” alink=”red”>

3. Purple background html example:

<body bgcolor=”6600CC” text=”black” link=”blue” vlink=”purple” alink=”red”>

3. Orange background html example:

<body bgcolor=”FF6600” text=”black” link=”blue” vlink=”purple” alink=”red”>

4. Purple background html example:

<body bgcolor=“FF33CC” text=”black” link=”blue” vlink=”purple” alink=”red”>

5. Green background html example:

<body bgcolor=00CC33” text=”black” link=”blue” vlink=”purple” alink=”red”>

When changing the color for the website web page background just make sure you select a color that is easy on the eye and does not STAND OUT. The color should also be made from the 256 html pallet so it can be transformed by the web browser to the webpage you initially have designed.

Tags: