Login for Software or Support

CoffeeCup - HTML Editor, Flash & Web Design Software

Over 48,871,500 Downloads in 87 Countries

Tell a Friend About Our Cool Software

Buy the Book Here !

Chapter 3: Using the font Tag


Now that you have learned how to use the <font> tag to control the font in your document, let's look at an example. Here's some HTML code that uses the <font> tag:

<p>This is normal black text, <font size="5" color="red">this is larger red text.</font></p>

<p><font size="7" color="blue">This is blue in the largest size</font>, now back to normal!</p>

<p>font size="4" color="#008080">Green large, <font size="7" color="brown">brown larger,</font> back to green large.</font></p>

The rendering of this in a browser is shown in Figure 3-3. The important thing to note about the third example is that <font> tags can be nested. Each </font> tag controls the text that it encloses; when the ending </font> tag is reached, the text reverts to whatever it was before. This might be the default font or it might be a font as defined by a previous <font> tag.

Font Display
Figure 3-3. Displaying the effects of the <font> tag.


Table of Contents
Download Our Software:

... and don't forget about our Free Software

CoffeeCup Home Page | Software | Copyright & Legal | Site Map | © 1996 - 2008 CoffeeCup Software, Inc.