|
www.BYOGeek.com Where you can learn to Be Your Own Geek! |
| |
home
html basics:byogeek tutorialsbyogeek referenceFree Resources![]() ![]() |
font colorIn our first web page from lesson 1, we had the following line:
<font color="red">Yay!!! I can make my own web
pages!!!!</font><br />
Quite self explainitory really <font color="red"> and </font> will make any text inbetween those tags red. This is where it becomes really important not to forget the closing </font> and/or the "/" in the closing tag otherwise everything after <font color="red"> on your page will be written in red. Incidently, red or not, this is refered to as the colour "bleeding" through the rest of your website. Close the wound to stop it bleeding. Of course red isn't the only colour available, infact there are about 216 web safe colours to choose from and couple of different ways to use them. We could try: <font color="magenta">printing a line in magenta</font><br /> Click here to see the results. Using the name of the color magenta is the lazy way of doing things though and it's also somewhat limited. The most common way to control colours (and yes even though <font></font> is being outdated, colours will still be relevant) is the use of hex numbers that look something like #FF00FF. Each color and shade of colour has it's own hex value. Lets try: <font color="magenta">using the word magenta</font><br /> <font color="#FF00FF">using the hex value for magenta</font><br /> Click here to see the results. Now to look at font size, click here to continue. Lesson updated Tuesday 5th August 2008 |
things to do list:
|
© 2008-2009 BYOGeek.com / nesperion.net | ||