Tutorials & Script Homepage
HTML/DHTML 1to7
HTML - Lists
Using iFrames
Background Colours
Basic Tables
Advanced Tables
Tables Tricks 'n' Tips
Tip Boxes
advertisment
advertisement
advertisement
Host With Us: HostingHelper.co.uk From Only $5.00p/m
Spotted an Error ? Let us Know
100's more FREE templates at FreeWebTemplates
Looking for a new Web Host ?
Free templates from TemplatesLand
Professional High-End Templates
TemplateBox.com more FREE templates
Free Flash Templates and Intros
advertisement
 
HTML/DHTML TUTORIAL NUMBER : 03
Please Click Here, and Help Keep This Site FREE to Use
 
Please click on our sponsors advert to the right if you download or use anything from this page.
Thank you for your help.
This tutorial has been created by: infinite-fire.net

Background Colours

HTML Tutorial - Change the background color of your web site
This tutorial will teach you how to change the background colour of your webpage.

Bgcolor
The attribute to change the background color of a web page is bgcolor, and it is placed in the <body> tag, as shown below:
<body bgcolor= "chocolate">

Now this would produce a page with a milk chocolate color background, and whilst there are a lot of named colours you could use (black, white, yellow, wheat, blanchedalmond, lightsteelblue to name but a few) I personally prefer to use hexadecimal values, which are based upon RGB values for the colours, which have 6 characters, the first two characters determine the amount of RED, the second two determine the amount of BLUE, and the final two numbers determine the amount of GREEN, the characters are on a scale from 0 to F (0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f) with 0 being no colour, and F being the strongest colour, so...

#FF0000 gives a strong red, whereas #440000 gives a weak red.
#00FF00 gives a strong green, and #004400 gives a weak green.
#0000FF gives a strong blue, and #000044 gives a weak blue.

Of course the fun comes when you mix them up!
#FFFF00 gives you yellow (mixing red and green)
#00BBBB gives a turquoise esque color (mixing green and blue)
#FF00FF gives a pink/purple color (mixing red and blue)

And of course, #000000 gives black (lack of an colour) and #FFFFFF gives white (all colours together)

Now as you can see, with 16 possible options for each of the 6 characters, there are a *lot* of possible combinations - the best way to find a one that you like is to experiment.

Conclusion
You now know how to change the background colour of your webpage!

I hope this came in useful!
Ask in the forum if you have any suggestions or comments.

Web Hosting  |  Membership website templates  |  Reliable UK Web Hosting  |  dresses  |  Art Web Templates  |  Cheap Flight Deals  |  UK Web Hosting Company  |  Coursework Writing  |  Reseller Hosting  |  coches de ocasion  |  Cheap UK Web Hosting  |   cell phones  |  Web Design  |  Low Cost Domain Names  |  Website templates  |  master a distancia  |  Austin Web Design  |  Flash Templates  |  Factory  |   cell phones  |  Canadian Web Hosting  |  Flash Intros  |  Web Templates  |  cartuchos  |  Corporate Logo Design Service  |  Website Templates  |  Bespoke Software Development  |  Domain Name Registration  |  Free Website Templates  |   Dedicated Server  |  UK Web Hosting  |  Dating Software - aeDating 4.1  |  Website Templates  |  Power Saver  |  taobao agent  |  Flash templates  |  Lolita Dresse  |  china wholesale  |  Canadian Web Hosting  |   Cheap Web Hosting Deal  |  Linux Hosting  |  Web Design uk  |  Web Hosting  |  Business web directory  |  Electronics  |  Free domain names  |  Best UK web Hosting  |  Shower Enclosures UK  |  

 
advertisment
advertisment
advertisment
  Top-end templates
  Flash Templates
  Web Hosting UK
  Made-in-China.com
  Web Design Tips
  Web Hosting Reviews
  Web hosting reviews
  Website Design
  Cheapest web hosting
  Stock Photography
  Bildagentur
  Reseller Hosting
  Company Logos
  Website Templates
  Website Templates
  Web Hosting UK
  templatebox.com
  freewebtemplates.com
  templatesland.com
  topfreegraphics.com
  freegraphicland.com
  free-templates-layouts
  Logo Design Software
  Layouts4Free
  Webmaster Resoucres
  Web Templates Factory
  Free Web Templates
  Free Templates Catalog
  Web Templates
  Reseller Web Hosting
  Stock Photography
  Animations-galore.com
  4print.com.au
  Host Review
  Web Hosting Host Color
  Dedicated Servers
  FlashTemplateDesign
  ZeroDollarTemplates
  Killersites.com
  how-to-build-websites
  Build a free website
  web Hosting
  Business Logo Design
  Templates Favpage
  webmastermind.de
  flasheasy.com
  More Featured Sites