Font tag to manage type of font in html code

<font face='arial,helvetica'> my Text </font>
Read the basic of html font tag here.
Font face can be set to display any style of the font for the text. We can set different font face to different part of a same line of text. Note that the type of font we set in font face has to be available in client computer.
Deprecated : FONT tag and its attributes are not supported in HTML5 ,
better to use styling using CSS.
Here is one example of font face with size and color attributes .
<font size="12" color="#0000cc" face="times new roman">This is simple</font>
Now here it is how it will appear.

This is simple

Here are some examples with different font face used inside font tag

face="times new roman" times new roman
face="vardana" vardana text
face="Arial" Arial
face="Arial Black" Arial Black
face="Comic Sans MS" Comic Sans MS
face="Helvetica" Helvetica text
face="Digital, Arial, Helvetica, sans-serif" Digital, Arial, Helvetica, sans-serif

Using CSS for Font family

We can define font styling by using inline font style, internal font style and external font style.
This is Inline font style using Comic Sans MS
Code is here.
<span style="font-family: 'Comic Sans MS';">This is Inline font style using Comic Sans MS</span>

More on using Font style with internal and external CSS

It is better to avoid using Font Tag in html pages as support for this tag can be removed any time. We can use font styling by using CSS.


* indicates required
Subscribe to plus2net

    Post your comments , suggestion , error , requirements etc here .

    We use cookies to improve your browsing experience. . Learn more
    HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
    ©2000-2024 All rights reserved worldwide Privacy Policy Disclaimer