MasterDiz.com

The Webmaster's Portal

Members Area

Welcome to...

Home

How to change the background.

 

 


 

A blank html document

(You can use the notepad to edit a html document)

You get this. (nothing)

<html>
<head>

<title></title>

</head>
<body>

</body>
</html>

 

To put background color

In the <body> tag add bgcolor="green"

You get this

<html>
<head>

<title></title>

</head>
<body
bgcolor="green">

</body>
</html>
 

To put background image

In the <body> tag add bgcolor="your image file"

You get this.

<html>
<head>

<title></title>

</head>
<body
bgcolor="wood1.gif">

</body>
</html>
 

To put animated background

In the <body> tag add bgcolor="your animated image file"

 
<html>
<head>

<title></title>

</head>
<body
bgcolor="stars.gif">

</body>
</html>
 

To put a black background using hexadecimal code

In the <body> tag add bgcolor="#000000"

You get this.

<html>
<head>

<title></title>

</head>
<body
bgcolor="#000000">

</body>
</html>
 
 

Also you can use hexadecimal code for the colors. like #008000 is green.

Remember to save your html documents with the extention "htm" and selecting "save as type 'ALL'"

Other wise will be save like" namehtm.txt" instead of "name.htm"