CHANGING TEXT SIZE AND COLOR

CHANGING TEXT SIZE:

To change the size of all or just certain portions of your text within an HTML document, use the SIZE attribute of the <FONT></FONT> tag. The following is an example of how the tag should appear in your HTML:

<FONT SIZE="4">
This text should appear in FONT SIZE 4
</FONT>

Seven text sizes can be used within the FONT SIZE tag, with FONT SIZE 1 as the smallest and FONT SIZE 7 as the largest. If you decide not to specify a font size, your text will be displayed in the default size for type which is size 3:

This is FONT SIZE 7
This text is FONT SIZE 6
This text is FONT SIZE 5
This text is FONT SIZE 4
This text is FONT SIZE 3
This text is FONT SIZE 2
This text is FONT SIZE 1

Another way to change text size is through the <BIG></BIG> and <SMALL></SMALL> tags, recognized by Netscape (versions 2.0-4.0) and Internet Explorer (versions 3.0-4.0). The <BIG></BIG> tag makes text one size larger than the current size, and the <SMALL></SMALL> makes text one point smaller. The following is an example of how the tags should appear in your HTML:

<BIG>This text is one size bigger</BIG>

<SMALL>This text is one size smaller</SMALL>

CHANGING TEXT COLOR:

Within your HTML document, changing the color of your text (all or just words or portions) is just as easy as changing text size. The HTML Color Values chart (click here) consists of two sets of values:

  • the "string literal"--the color's actual name (i.e. aliceblue)
  • the hexadecimal triplet (i.e. F0 F8 FF)

You can use either value to change text color using the COLOR attribute within the FONT tag. Here are two examples of how to change the color of some text to RED:

You can use the color's actual name within the FONT tag (Note: color names are only compatible with Netscape 4.0 and Internet Explorer 4.0):
<FONT COLOR="Red">Some RED text</FONT>

Or the color's hexadecimal triplet value within the FONT tag (supported by both Netscape and Explorer, version 2.0-4.0):
<FONT COLOR="#FF0000">Some RED text</FONT>

Note: You can change the size and the color of the text within a single FONT tag:
<FONT SIZE="4" COLOR="Red">
Some SIZE 4 text in RED
</FONT>