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  |  Dallas Web Design  |  Text Link Adds  |  Art Web Templates  |  Cheap Flight Deals  |  Domain Name Hosting  |  Digital Camera  |  Coursework Writing  |   Youth hostels  |  Internet Marketing  |  Web Design  |  Low Cost Domain Names  |  Burial Life Insurance  |  Website templates  |  Broadband Reseller  |  Dedicated Server  |  Business Broadband  |  Professionelt webdesign firma - webbureau  |  ATX Web Design - Texas TX  |  Flash Templates  |   tablet notebook  |  Machinery moving Los Angeles  |  Flash Intros  |  Web Templates  |  epi suite software  |  Cheap Web Hosting  |  web hosting  |  Website Templates  |  Corporate Logo Design Service  |  ID card printers  |  id cards  |   Free Web Hosting  |  UK Web Hosting  |  Dating Software - aeDating 4.1  |  Flash Templates  |  Website Templates  |  Power Saver  |  Website Design Quote  |  Flash templates  |  cctv cameras  |  Web Design Manchester  |  Web Templates  |   Flash templates  |  Cheap Web Hosting Deal  |  Linux Hosting  |  Web Design uk  |  Web Hosting  |  Business web directory  |  Accept Credit Cards  |  Mobile Phone Contracts  |  Car Rental Deals  |  Free domain names  |  Business Email  |  Web Designer Delhi  |  video surveillance systems  |  

 
advertisment
advertisment
advertisment
advertisment
  Top-end templates
  Credit Cards
  Reseller web hosting UK
  free flash tutorials
  Web Hosting
  Hosting Directory
  Corporate Gifts
  Company Logos
  Christian Designs
  Website Templates
  Website Templates
  Web Hosting UK
  Free Web Templates
  Custom site design
  Domain Names
  Logo Design Pro UK
  Free Flash
  templatebox.com
  freewebtemplates.com
  templatesland.com
  topfreegraphics.com
  freegraphicland.com
  free-templates-layouts
  Ink & Toner Cartridges
  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