The <font> tag provides no real functionality by itself, but with the help of a few attributes, this tag is used to change the style, size, and color of HTML text elements. The size, color, and face attributes can be used all at once or individually, providing users with the ability to create dynamic font styles for any HTML element.
<p> <font size="5">Here is a size 5 font</font> </p>
<font color="#990000">This text is hex color #990000</font> <br> <font color="red">This text is red</font>
<p> <font face="Georgia, Arial, Garamond">This paragraph has had its font...</font> </p>
Choose a different font face by specifying any font you have installed. Font face is synonymous with font type. As a web designer, be aware that if you specify a custom font type and users viewing the page don't have the exact same font installed, they will not be able to see it. Instead the chosen font will default to Times New Roman.
Attribute | Value | Description |
---|---|---|
size= | Num. Value 1-7 | Size of your text, with 7 being biggest |
color= | rgb,name,or hexidecimal | Font color |
face= | name of font | Font type |