ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

08-HTML Font

In the HTML text element, the tag itself has no real functionality, however with the help of  the attributes, you can use this tag in changing the style, color and size of a text in the web page.  The color, size, and face attributes provide the user to create dynamic font styles for an HTML element but it can be used individually.

 

Take note that the <font> and <basefont /> tags should not be used for publishing your work. Instead, use CSS styles to manipulate your font. For more information, see our CSS Tutorial .

 

Example of Font size:

<p>
<font size="5">Here is a size 5 font</font>
</p>

Result:

Here is a size 5 font

Example of Font color:

<font color="#0000FF">This text is hex color #0000FF</font>
<br />
<font color="blue">This text is blue</font>

Result:
This text is hex color #0000FF

This text is blue
Example of Font face:

<p><font size="9" face="Georgia, Arial" color="Blue">IT</font>sourcecode.com
 We Exist to Provide Best Quality and 100% Free Source Code and Tutorials.</p>

Result:

ITsourcecode.com
We Exist to Provide Best Quality and 100% Free Source Code and Tutorials.

Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!