Follow these step-by-step examples to see how the font tag attributes work individually.
Values range from 1 (smallest) to 7 (largest). Default is 3.
<font size="1">Size 1</font> <font size="3">Size 3 (Default)</font><font size="7">Size 7 (max)</font>
Accepts color names or Hex codes (#RRGGBB).
<font color="red">i am red</font><font color="blue">i am blue</font><font color="green">i am green</font>
Defines the typeface (font family) of the text.
<font face="arial">Arial</font><font face="Courier New (Classic Serif)"> Courier New (Classic Serif)</font><font face="Georgia (Classic Serif)"> Georgia (Classic Serif)</font>
Combining all three attributes to create a specific design style.
| Task | The Old Way (<font>) | The Modern Way (CSS) |
|---|---|---|
| Blue Text | <font color="blue"> |
<span style="color: blue;"> |
| Large Text | <font size="5"> |
<span style="font-size: 24px;"> |
| Arial Font | <font face="Arial"> |
<span style="font-family: Arial;"> |