Beginners HTML Tutorial | Adding Backgrounds To Your Web Page

By admin on May 6, 2010

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

Step 1: To add a background image to your web page, just copy this snippet of code:

Step 2: Now open your web page in the First Page or NVU software and paste that code in just AFTER the <body tag, like this:

<body background=”bg.png” bgproperties=”fixed”

Step 3: Change FILENAME to the actual filename you used when you saved the image to your hard drive.

Example: If you used the filename of bluegradientbg.png then you’d type it like this:

<body background=”bluegradientbg.png” bgproperties=”fixed”

Step 4: Now save your web page and open it in a browser and check to make sure the image has displayed correctly.

Bookmark and Share

Incoming search terms for the article:

Leave a Reply