Home Advertise with us Forum Articles Sitemap Contact

HTML Fonts

Fonts act as one of the most vital visual elements of a web page. The tag commonly used to modify the text on your site with respect to size, style & color is the <font> tag. The size, color & face attributes are typically used with the font tag to provide a scope for customizing the fonts. Another tag that can be used is the <basefont> tag that functions to set all text to the same size, color & face.

Code Results
Example of size attribute

<font size="7">This is a size 7 font</font>

This is a size 5 font

Code Results
Example of color attribute

<font color="#FF00FF">This text is in hexcolor #000000</font>

<br />

<font color="blue">This text is in blue</font>

This text is in hexcolor #FF00FF

This text is in blue

Code Results
Example of face attribute


<font face="Bookman Old Style, Book Antiqua, Garamond">This paragraph has been formatted </font>


This paragraph has been formatted

Although <font> tag is still being used by a large number of people, it is deprecated & thus should be avoided. Instead, the CSS styles should be used to manipulate font.

HTML Tip 1

Use only hexadecimal #RGB values for colors. The behavior of named colors is browser-idiosyncratic and totally unpredictable.

HTML Tip 2

You can resize your images without a graphics program by changing the HEIGHT and WIDTH in your image tag.