How to use web backgrounds

 

The HTML tag to insert a background in to a web page is:
<body background="background_file_name.exstenstion">

Example:
<body
background="blue.jpg">

With some of the backgrounds you may have trouble picking a good text color, a good trick you can use is placing a table on your web page with a good solid contrasting color as it's background.
The HTML tag to insert a table on to a web page is:

Example:
<
table border="1" width="100%" bgcolor="#FFFFFF">
<
tr>
<
td width="80%">Place Your Text Here</td>
<
/tr>
<
/table>

You can put a background in your table.
The HTML tag to insert a background in to a table on a web page is:

Example:
<table border="1" width="100%" background="blue.jpg">
<
tr>
<
td width="80%">Place Your Text Here</td>
<
/tr>
<
/table>

Example web pages:


<html>
<head><title>
Welcome</title></head>
<body background="blue.jpg">
Welcome to the web
</body>
</html>


<html>
<head><title>
Welcome</title></head>
<body background="blue.jpg">
<table border="1" width="100%" bgcolor="#FFFFFF">
<
tr>
<
td width="80%">Place Your Text Here</td>
<
/tr>
<
/table
>
Welcome to the web
</body>
</html>


<html>
<head><title>
Welcome</title></head>
<body background="blue.jpg">
<center>
<table border="1" width="100%" bgcolor="yellow.jpg">
<
tr>
<
td width="80%">Place Your Text Here in table</td>
<
/tr>
<
/table>
</center>

</body>
</html>


You can cut and paste any of this html code.

How to Menu Main Menu