Login for Software or Support

CoffeeCup - HTML Editor, Flash & Web Design Software

Over 48,871,458 Downloads in 87 Countries

Tell a Friend About Our Cool Software

Buy the Book Here !

Chapter 3: The Background


Unless you specify otherwise, a browser will render an HTML document on a white background. You can specify either a color or an image for the background.

To specify a background color other than white, include the bgcolor attribute in the <body> tag. You can specify either a color name or a numerical value for the color. For example, the following <body> tag creates a document with a medium gray background:

<body bgcolor="#999999">

To display an image in the page background, use the background attribute to specify the URL of the image:

<body background="URL">

For example:

<body background="images/chalk.gif">

If the image is smaller than the browser window it will be tiled (repeated) to fill the area.


Table of Contents
CoffeeCup Home Page | Software | Copyright & Legal | Site Map | © 1996 - 2008 CoffeeCup Software, Inc.