eHow launches Android app: Get the best of eHow on the go.

How to Add a Background Image to a Web Page

Video Preview

Summary: To add a background image to a Web page, add a background attribute to the body tag with the location or URL of the image, either absolute or relative. Add a background image when creating a Web site with tips from a software developer in this free video on Web design and the Internet.

Views:
488
Presenter
By Luis Estrada
eHow Presenter

Luis Estrada has a Bachelor's degree in Computer Science. He specializes in developing web sites and web applications. Estrada has been designing and creating websites for more than 8...read more

Post a Comment

Post a Comment

Video Transcript

"RayHello, my name is Luis Estrada, and I am a software developer. In this video, I will show you how to add a background video to a web page. Let's start with a basic HTML file. Go to the body tag and specify a new background attribute. This attribute specifies a background image for the entire HTML page. If the image is smaller than the browser, the image will be repeated until it fills the entire browser window. The value of this attribute is the location, or URL, of the image you want to use. The URL can be an absolute value, which means that it has the entire path, or a relative URL, which means that it depends on the location of the current page. For example, let's use an image inside the same directory as the HTML file to fill the background. Here we have an image called back.jpg. Type the name of the image in the source file, save the file, and see the changes in the browser. If you want to use an absolute path, you have to write the entire URL. In order to get the absolute path of an image on the web, you can right-click on it, then select properties, and copy the location of the file. Paste this location in the source file, save it, and refresh the page. I'm Luis Estrada and I've just shown you how to create web pages using HTML."

eHow Article: How to Add a Background Image to a Web Page

Related Ads

  • Have you done this? Click here to let us know.
Internet
Virginia DeBolt,

Meet Virginia DeBolt eHow's Internet Expert.

Get Free Internet Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US Portions of this page are modifications based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License.

Demand Media
eHow_eHow Technology and Electronics