How to fill in a background in html

How to fill in a background in html

The markup language of HTML allows to do a page background monophonic any color and also to place on it images. It gives the chance to receive the text, for example, against the background of a landscape or paper texture. Instruction 1. Selecting background color or the image for the placement on it, be guided first of all by readability of the text. The background should be contrast, otherwise, characters should be selected accurately on it. If you decided to make a background graphic, surely make sure that you are the author of the image or have the right for its uses on the basis of the contract (for example, the free license). 2. Find the tag in the HTML-source code of the page. To make a background monophonic and color, add to it the bkcolor variable with argument in the form of the code of color. After that the design will look as follows: tag the background variable with argument in the form of a file name with the image. Now it will look so: , where fon.gif - a file name. Certainly, if it has other format, it is necessary to change respectively its expansion in the tag. 6. Load the updated version of the HTML-file on the server. Open it in the browser. Make sure that the background is displayed correctly. If on it there is an image, it will repeat both in horizontal direction, and in vertical direction, filling all space of the page. Check, the text on a new background in different browsers is how well read. If necessary use other color or the graphic file.

Author: «MirrorInfo» Dream Team


Print