| HTMLCOOK - Main Page - lists all articles and tutorials |
||
| 1&1 hosting - UK hosting - Buy
your domain from 1&1 -
Best domain prices in the UK! 1&! US hosting - Hosting Made Easy. Order 1&1 Microsoft Web Hosting from the World’s # 1 Web Host. Get up to 5 FREE domains! |
|
|
|
Now
let's add a background color to "mypage.html".
<HTML>
<BODY
BGCOLOR=#FF00FF>
This is my first web page
</BODY>
|
| You
can give your Web pages any background color that you like. The 6 digit
color codes are based on a 16 bit counting system which for each digit runs
from 0 to 9 then the letters A through F. The digits themselves represent variables of Red - Green - Blue, the first two digits representing Red the middle two - Green, and the last two - Blue. With 16 possible variables per digit, (0-1-2-3-4-5-6-7-8-9-A-B-C-D-E-F), and two digits per variables of Red for example, it is possible to choose from 256 shades of red. Total Black is #000000, and White is #FFFFFF. Here's an example. |
|
Black
- #000000 |
|
You can also simply code by the color name like so: <BODY BGCOLOR="yellow"> Try several
colors on your own and do it both ways a few times. Put any text on your
"mypage.html" that you want. |
|
Now let's use an Image file as a background. There are two types of Image file formats you can use. They are ".gif" and ".jpg" files. The coding is simple, you need only specify the exact file address of the image file you want to use. It looks like this: |
| <HTML>
<HEAD> <TITLE>My first web page</TITLE> </HEAD> <BODY BACKGROUND="images/blue.gif"> This is my first web page </BODY> </HTML> |
|
The new code is the file path to where the background image resides on your system, or on your web server. Create a sub-folder in your file folder "mypage" and title it "images". Save the Image "blue.gif" into the new sub-folder. Just "click" your right mouse button on any spot on the blue background and save it in your "images" sub-folder as "blue.gif". Copy any imagery you want into your new sub-folder. You can also use any imagery you want from other folders on your system when working off-line, you need only to specify the exact path to the file.
When you
publish on the Internet you will have to keep it simple with no "File"
address, only the exact folder the imagery will be stored in on your server.
Play with the background imagery for a while. Keep in mind that the coding
for the background image or color is always within the "<BODY>"
tag.
|
| Previous Page |