The <font> tag in HTML is deprecated. It is supposed to
be removed in a future version of HTML.
Even if a lot of people are using it, you should try to avoid
it, and use styles instead.
The HTML <font> Tag
With HTML code like this, you can specify both the size and the type of the
browser output :
<font size="2" face="Verdana">
This is a paragraph.
<font size="3" face="Times">
This is another paragraph.
Try it yourself
||Defines the font size
||Increases the font size
||Decreases the font size
||Defines the font-name
||Defines the font color
||Defines the font color
The <font> Tag Should NOT be Used
The <font> tag is deprecated in the latest versions of HTML (HTML 4 and
The World Wide Web Consortium (W3C) has removed the <font> tag from its
recommendations. In future versions of HTML, style sheets (CSS) will be used to
define the layout and display properties of HTML elements.
The Right Way to Do It - With Styles
Set the font of text
This example demonstrates how to set the font of a text.
Set the font size of text
This example demonstrates how to set the font size of a text.
Set the font color of text
This example demonstrates how to set the color of a text.
Set the font, font size, and
font color of text
This example demonstrates how to set the font, font size, and font color of a text.
Where to Learn More About Style Sheets?
First off: Finish the last chapters in our HTML tutorial !!! In the
following chapters we will explain why some tags, like <font>, are to be
removed from the HTML recommendations, and how to insert a style sheet in an
To learn more about style sheets: Study our CSS Tutorial.
Reliable, affordable, feature-rich web hosting!
Take the uncertainty out of Web hosting and let
put service, performance and value back in. No matter which
hosting type or plan you choose, your site receives 24/7
maintenance and protection in our world-class data center. Plus,
you get the expert, friendly service you deserve, from the
world's largest hostname provider.
With three plans to choose from and
prices starting at just $4.99 per month, GoDaddy.com is sure to have a plan that's
right-sized and right-priced just for you!
All plans feature FREE 24x7 setup, FREE 24x7 monitoring, best-
of-breed routers, firewalls and servers, 24x7 onsite physical security
and access to our exclusive Go Daddy Hosting Connection, THE place
to install over 30 FREE applications. Virtual Dedicated and Dedicated
Server plans also available.
Visit GoDaddy.com today.
Virtual Dedicated, Dedicated Server and unlimited plans also available.
Save 10% on web hosting - Enter code w3tenoff at checkout
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
The PHP Certificate is for developers who want to document their knowledge of PHP and SQL (MySQL).