Tuesday, January 23, 2007

Giving Background on your website


Thereis have two kinds of background, it's background color and background image
To put the background color you must give the attribute BGCOLOR in the BODY tag.
The format like this:
<BODY BGCOLOR="the color">
You can give the value of bgcolor color name like red, blue, black, maroon etc, or using hexadecimal color like ,#000000, #ffccoo, etc.
Example:
<HTML>
<HEAD><TITLE>This is My First Webpage</TITLE></HEAD>
<BODY BGCOLOR="blue">
This background is blue
<BODY>
</HTML>


To put the background image you can use BACKGROUND atributte on your BODY tag, The format like this
<BODY BACKGROUNF="path and image name">
Remember you must give path where image file your saved. IF you save the image in the same folder with html file you done have give a path.
example:
<HTML>
<HEAD><TITLE>This is My First Webpage</TITLE></HEAD>
<BODY BACKGROUND="back.gif">
This is use background image
<BODY>
</HTML>

0 Comments:

Post a Comment

<< Home