Web.Wizard HTML tutorial series

Tutorial 6

Colours

In the previous tutorial, you were shown how to add a background image to your Web page using the attribute, BACKGROUND="". This tutorial describes the remaining attributes associated with the tag, <BODY>.

HTML describes colours in HEXidecimal using the RGB (Red-Green-Blue) format, rrggbb.

HEXidecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F
Decimal 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Below is a table containing a selection of colours. Click here to see a chart displaying possible rrggbb combinations.

rrggbbColour
FFFFFFWhite
000000Black
FF0000Red
00FF00Green
0000FFBlue
rrggbbColour
00FFFFCyan
FFFF00Yellow
FF00FFMagenta
C0C0C0Light grey
808080Dark grey
rrggbbColour
880000Dark red
008800Dark green
000088Dark blue
888800Dark yellow
880088Dark Magenta


The <BODY> attributes that use the rrggbb format are:
  • BGCOLOR="#rrggbb"
    The colour used for the background.
  • TEXT="#rrggbb"
    The colour used for text.
  • LINK="#rrggbb"
    The colour used for a hypertext link that has not yet been visited.
  • ALINK="#rrggbb"
    The colour used for a hypertext link when it is being selected.
  • VLINK="#rrggbb"
    The colour used for a hypertext link that has already been visited. This is ususally the same as the colour for text.
For example,

<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" ALINK="#00FF00" VLINK="#000000">

When you have chosen your colours, it is advisable to be consistant throughout your Web site! If you'd rather allow the browser to decide the colours (most browers allow the user to setup default values), simply leave out the attributes your not bothered about :)

END OF TUTORIAL

Go back to Contents Back|Next


Please direct any comments to Matthew Bacon at: cadenza@cyberstrider.org
Copyright © Matthew Bacon - Last updated on: 10-07-99

This page was created using Web.Wizard v3.10 © 1997-1999 Cadenza Software