How to install a background on the website

How to install a background on the website

The design of any website is based on background drawings and a color gamma as the house on the base. If you have a desire to replace the standard base of the Internet resource with something more individual, then it is necessary to begin with development of design. And when it is ready - there will be purely technical part, that is replacement of the old design of a background of the website set in the source code of pages on new. It is possible to implement it in practice in several ways. Instruction 1. At first it is necessary to find out by what of ways the background in the current version of the website is set. For this purpose open the HTML-code of the page. It is possible to make it the simple text editor, having downloaded previously the file from the server. And it is possible to use the editor of pages of a management system of the website if you use that. The editor of pages does not require downloading of the file, and changes it directly on the server, using the browser as the interface. The HTML-code (HyperText Markup Language - "hypertext markup language") of the page opened by you consists of lines instructions for the browser. In them types, design of appearance and location of each of web page elements are described. It is accepted to call these instructions "tags". The sequence of tags in the code of the page submits to rules of the HTML language too - they are broken into blocks, the heading block which is beginning with the tag and completed shall be first of which . The block which interests you more now - a document body should follow it. He is limited by the tags and . It is possible to place information on a page background in the opening tag of this block (). Such information in tags is called "attributes". The attribute of the body tag which sets background color is designated as bgcolor and in the code can look so: set silvery background color for the page Here. The browser can identify some of flowers from names, but not to be mistaken, to specify their hexadecimal codes better. This option with silvery color in hexadecimal expression so will look: So, to you it is necessary to find in the code of the page the tag beginning with Here as a background set the picture of bg.jpg from the img folder of your server. If such attribute is present, replace a picture file name addressed to the new picture, without having forgotten to load it on the server. If you want to replace the picture with color, replace the background attribute with the bgcolor attribute which we described above. 3. At the description of appearance of pages with rather difficult design use "cascading style sheets" - CSS (Cascading Style Sheets). Blocks of the CSS code can be included directly in the code of the page or contain in the external file with the css extension. It is necessary to you in a heading part of the code of the page (between the tags and ) to look for the tag of the description of style beginning with @import of ""style.css""; gave the link to the file of styles with the name style.css Here. You need to open the specified file for editing. And if there is no link, and after the opening tag