How To

How to Add a Background Color to a Web Page

Contributor
By eHow Contributing Writer
(24 Ratings)

Background colors can add emphasis and provide contrast to a Web page.

Difficulty: Easy
Instructions
  1. Step 1

    Open a text-editing program, such as EditPad or Notepad. From the File menu, select Open.

  2. Step 2

    Locate the Web page file and double-click to open it.

  3. Step 3

    Place the cursor after the Head tag. Type the following: body bgcolor=.

  4. Step 4

    Type the name of the desired color (green, blue, red) after the = sign.

  5. Step 5

    Select Save from the File menu. Open your Web browser.

  6. Step 6

    Open the file by clicking File, selecting Open and locating the file. Double click or select Open.

  7. Step 7

    Upload the page to your Web site.

Tips & Warnings
  • For more complex colors, use the HEX color chart, available in many HTML reference manuals.
  • If you use a dark or brightly colored background, be sure to use a contrasting color for your text, such as white or yellow.

Post a Comment

Post a Comment
  • Have you done this? Click here to let us know.
I Did This

Related Ads

Internet
Virginia DeBolt,

Meet Virginia DeBolt eHow's Internet Expert.

Get Free Internet Newsletters

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US

Demand Media
eHow_eHow Technology and Electronics