Judicious use of colours can make web pages and games much more interesting. The code below describes the web page reproduced in the Live Preview window on the right.

Try changing the name of a few colours and notice the effect on the Live Preview window.


Note: as a Canadian, and like the British, I use the spelling "colours" in the text instead of the American "color"; however, the css syntax requires the American spelling.


Your notebook

Keep your personal notes here. These notes are stored by your browser on your own computer, and will be available from any page on this site. You can choose to use html syntax for formatting.


HTML Add Note


  1. Introduction
  2. Colourful Names
  3. Hex notation
  4. RGB and RGBA notations
  5. HSL: Hue, Saturation and Lightness