Thursday, 12 February 2015

Change The Home Page Color

Every website has a home page.


Color is one of the most important factors of effective Web design. The color of a home page often says a lot about the site. A home page for a flower shop, for example, may benefit from brighter colors such as yellow and pink rather than dark blacks or grays. HTML is the language used to format Web pages, and this includes the setting of colors. If you wish to change the home page color of a website, the HTML code needed to do this is easy to include in the site's design.


Instructions


1. Open the HTML file of the website's home page. You can use any text editor to do this, including Windows Notepad, which is available for free.


2. Scroll through the HTML file and locate the line that begins with "

3. Identify the element of the "body" tag that says "bgcolor." This may or may not be present in the tag. If present, it will be typed inside the triangle brackets along with the word "body." For example, "". If it is not present, the home page is possibly displaying only a white background since no color is set.


4. Add the "bgcolor" attribute inside the "body" tag if it not already there. Add an equal sign after the word "bgcolor."


5. Add or change the color noted after the "bgcolor" attribute. For example, if the attribute currently reads "bgcolor=blue", change this to any other simple color, such as "orange," "white," "yellow," "green" or "red." If no color is already defined, add your own. The "body" tag should now look like "".


6. Set the color to an HTML code if you need a more interesting shade. HTML color codes begin with the "#" sign and contain a six-digit alphanumeric string of text. Many charts of HTML codes are widely available. Choose any code you wish for any color you like, and place this after the "bgcolor" attribute. You must use either an HTML color code or a simple color word like "red," but not both. For the best accuracy, it is advised that you use the color codes. The final "body" tag may read "". This effectively changes the home page color.

Tags: home page, bgcolor attribute, after bgcolor, after bgcolor attribute, color codes, HTML code, HTML color