How to set the background color to a html page give color to a html page, set the background color of a html page
How to set the background color to a html page
First thing to do is the get the color code of the color you want to use as background color for your html code.
To do this, you can use google or yahoo to search for web colors codes or use a 2D/3D graphics tool (Like Photoshop or Fireworks from Adobe). Once you have the code for the color you want to use, you have more options to set this color as your html page's background. I will underline only three of them:
1) use <style> tag in your <head> portion of the html page: <html> <head> <style> body { background: #FFA500; } </style> </head> ............
2) use style property to the <body> tag ........... <body style="background:#FFA500"> ...........
3) use the bgcolor property to the <body> tag: ........... <body bgcolor="#FFA500"> ...........
Note that #FFA500 is the color used by me for this example. The result will be a html page that will have this background
Designed and developed by Andrei Manescu. Optimized for Mozilla Firefox.
Copyright 2007 Andrei Manescu
All trademarks and copyrights on this page are owned by their respective owners. Comments are owned by those who posted them.