Tech Tips

How Can I Change My Web Page Color?

by Willa Dunn, Demand Media
A colored navigation panel makes your Web page more prominent.

A colored navigation panel makes your Web page more prominent.

Web pages display content on the Internet, usually in the default color of white. A white background may not be the best option for your site content. If you display various images or want to use a lighter color for your text, change your Web page color in a few steps by modifying the "<Body>" tag.

Step 1

Open your Web page using an HTML or text editor; locate the "" tag.

Step 2

Type the following code after the beginning tag () and before the ending tag (): The "#000033" is a hex code in an RGB (red, green, blue) format, and it changes your page to a dark-blue color.

Step 3

Change the "#000033" portion to another hex color code to get a different color for your Web page. Some examples are "#000000" for black, and "#FF0000" for red. Navigate to the page in a browser to see the color change.

About the Author

Willa Dunn has been writing since 1970. She has written website content, as well as technical documentation, poetry and fiction. She specializes in technology-related articles. Dunn attended Illinois Institute of Technology and the University of Illinois, studying photography and computer science.

Photo Credits

  • Hemera Technologies/Photos.com/Getty Images
TopLeft