G jobs

Thursday, October 1, 2009

HTML IN SIMPLE STEPS PART I

Document BackGround

The Background color and background image of an HTML document are specified using two different attributes of the tag:

1. Background colors simply fill the entire document

2. Background images are tiled by the browser. it means that they are repeated left to right, top to bottom filling up the visible of the browser.

1. To define a background color for a document, add the bgcolor attribute to the tag as shown below.

2. Set the bgcolor attribute equal to a hexadecimal color value or predefined color name. In the following example the background of the document has been specified as black using hexadecimal notation.

A balck background with text,

3. HTML code for a complete page will look like this:

Background color

A black background with white text .

No comments:

Post a Comment