Lesson Five

Putting colours into your text to highlight parts of it can be done in several ways, but the easiest is to use a coding such as <font color="red"> in front of the piece of text to be highlighted, and </font> after it. I have put this coding round the word this, as you will be able to see when you look at the source code.

The standard colours which can be called on by name in this way are:

Other colour names may or may not work, orange example, depending on your browser, but any colour can be used if you know how to code for it: eg. #ffa500, example. You can do your own experiments to work out the best values for colours: the first two numbers/letters set the brightness for the red component of pixels, the middle two do the green component, and the last two do the blue. 00 is the darkest setting and ff is the brightest. They need to use letters as well as numbers because they use base sixteen instead of ten: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 21... all the way up to... e9 ea eb ec ed ee ef f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fa fb fc fd fe ff.

More common ways to highlight words are <strong> (which is usually displayed as bold print), <em> (emphatic: usually displayed using italics), <b> (bold) and <i> (italics). It is also possible to underline words by using <u> tags, but this is not usually a good idea because underlining normally indicates hyperlinks.