Things You'll Need:
- FTP software Web host Internet connection Text editor
-
Step 1
Decide whether you want to use an image or photo as a background, or if you want to use a simple color. If using an image, continue to Step 2. If using a color, skip to Step 4.
-
Step 2
Obtain an image. You may wish to use use a free image found online that is copyright-free or covered under the Creative Commons license. Alternatively, you may take a photo yourself using a digital camera.
-
Step 3
Upload the photo to your web server using your FTP software. Use a plain text editor (e.g., TextEdit on a Mac or Notepad on a Windows PC) to open the HTML code for the web page in which you wish to use a background image. Insert the following code between the <head> and </head> tags at the top of the page: <style type="text/css"> body {background-image:url('IMAGE')} </style>. Change "IMAGE" to the file name for the photo you just uploaded. Save the file and refresh the page in your browser. The photo you uploaded will now be displayed as a web page background.
-
Step 4
Use a text editor to open the web page if you want to use a simple color as a background. Between the <head> tags at the start of the page, insert: <style type="text/css">
body
{
background-color:COLOR;
}
</style> -
Step 5
Change "COLOR" in Step 4 to the name of a specific color (e.g. red, yellow, black, blue). Save the page and refresh it in your browser to view your new colored background.







