Using Fonts

The FONT tag allows you to exercise more control over the relative size of text elements and display selected text in different colours.

The syntax of the FONT tag is:

<FONT SIZE="+1" COLOR="#FFFFFF">

where SIZE can be number 1 to 7, or a number with a plus or minus sign to alter the size relative to the current size. Example:

If the current FONT SIZE is 3, then

SIZE="4"

is the same as:

SIZE="+1"

COLORS are represented by 6 hexadecimal digits representing the Red, Green, Blue color scheme. The first two digits represent Red, the second two, Green, and the final two, Blue. 00 means no colour saturation (colour off) and FF means full colour saturation. So, #000000 would represent Black and #FFFFFF represents White.

With this method of representing colours, there are 16.7 million possible shades which can be represented. Use colours carefully as Netscape works with a colour palette of only 216 colours, regardless of the video configuration, and many people use the standard 16 colour display.

Home Page | Session 4 Index | Character Styles | Images