Lesson 2.02 — Fun With Fonts

We've seen how to turn text into funny colors using the color feature of the FONT element. You can also change the size of your fonts using another feature of this element. Here's how:

<font size="+1"></FONT>

Here's a sample of the range of sizes you can code:

<font size="-2"></FONT>
<font size="-1"></FONT>
Regular font size — no special coding required!
<font size="+1"></FONT>
<font size="+2"></FONT>

And so on. Obviously you wouldn't want to code all your pages like this, but sometimes slightly different font sizes (I recommend sticking to +1 and -1) can be used to good effect — in tables, for example, or for things that need to be less obstrusive, such as the copyright notice at the bottom of this page.

Let's learn Some Layout Tricks.