|
Click me for Web Safe Colour Chart
Colours
Now it is time to add some colour to your site. There are 256 Web Safe colours – this means that these colours look the same on all the many different versions of browsers. You tell the browser which colour you want by a special code – called hexadecimal code. Colours are identified by a special 6 digit code made up of numbers and letters.
ex.
| Hex Code |
Color |
| #FFFFFF |
|
| #FFFFCC |
|
| #FFFF99 |
|
| #FFFF66 |
|
There are two special commands for adding colour; bgcolor and color.
bgcolor = back ground colour. Again, notice how color is spelled the American way. To change the colour of your page the bgcolor command inside of the body tag.
<body bgcolor="#ffee00">
To add colour to the text you use the color command. You tell the <font> what color you want it be like this:
<font color="#00eeff">This is my first web page.</font>
Put it all together!

<html>
<head>
<title>Jet Internet</title>
<meta name="keywords" content="Jet Internet, web design">
<meta name="description" content="This is my first web site.">
</head>
<body bgcolor="#ffee00">
<p align="center"><font color="#00eeff" face="Comic Sans Ms" size="2">This is my first web page.</<font></p>
</body>
</html>
|