MasterDiz.com

The Webmaster's Portal

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 background="your image file"

You get this.

<html>
<head>

<title></title>

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

</body>
</html>
 

To put animated background

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

 
<html>
<head>

<title></title>

</head>
<body
background="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>
 
 

Disclaimer

Copyright (C) 2009 MasterDiz.com