Modifying Text with the <FONT> Tag

Specifying the text color in the <BODY> tag of your Web page changed the color of all the text on the page. Occasionally you will want to change the color of individual words within the page. Color that affects only a few sections of a page is called spot color. You can do this using the <FONT> tag. The <FONT> tag gives you even more control by allowing you to specify the color, size, and even the font to be used for the text on your page. The syntax for the <FONT> tag is:

<FONT SIZE=size COLOR=color FACE=font>The text that will be revised</FONT>

Return to the plainstupid text document in Notepad. Locate the following heading:

<H2 ALIGN=CENTER>The Wildest and Wackiest Gifts on the Web</H2>

Edit this heading using the font tags above, using a font size of 5, color=fuchsia, and font face of helvetica. You should now show the following:

<FONT SIZE=5 COLOR=FUCHSIA FACE=HELVETICA>The Wildest and Wackiest Gifts on the Web</FONT>

Save your text document and view it in your browser. Notice that is no longer centered. Do you remember the code used to align your text to the center? To center the text, you must embed the center=alignment in a paragraph tag. Make the following changes then save your work and view it in your browser.

<P ALIGN=CENTER>

<FONT SIZE=5 COLOR=FUCHSIA FACE=HELVETICA>The Wildest and Wackiest Gifts on the Web</FONT>

</P>

You will leave this code in your word document, however, change the font color to black. When you create your background later, you can then go back and change the color and face to whatever you want.

Just Plain Stupid