HTML - Font
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.
HTML - Font Size
Set the size of your font with size. The range of accepted values goes from 1 -- the smallest, to 7 -- the largest. The default size of a font is 3.
HTML Font Size Code
<font size="5">Here is a size 5 font</font>
HTML Font Size Result
Here is a size 5 font.
HTML - Font Color
Set the color of your font with color.
HTML Font Color Code:
<font color="#990000">This text is hex color #990000</font>
<font color="red">This text is red</font>
HTML Font Color Result
This text is hex color #990000
This text is red
HTML - Font Face
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. To reduce the risk of running into this situation, you may provide a list of several fonts with the face attribute, such as outlined below.
HTML Font Face Code
<font face="Georgia, Arial, Garamond">This paragraph
has had its font...</font>
HTML Font Face Result
This paragraph has had its font formatted by the font tag!
In the example above, we have changed the font face (type) of a paragraph element and specified a list of similar fonts to apply to this element in the case that some of our viewers do not have these fonts installed.
HTML Font - Attribute Review
HTML Font Attributes
|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|
Beautiful First Letter Style
Customize your fonts to achieve any desired look.
<font size="7" face="Georgia, Arial" color="maroon">W</font>orld.
My IT World.