Tell a Friend About Our Cool Software

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.
Figure 3-3. Displaying the effects of the <font> tag.