Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <font> Tag


Not Supported in HTML5.

The <font> tag was used in HTML 4 to specify the font face, font size, and color of text.


What to Use Instead?

Example

Set the color of text (with CSS):

<p style="color:red">This is a paragraph.</p>
<p style="color:blue">This is another paragraph.</p>
Try it Yourself »

Example

Set the font of text (with CSS):

<p style="font-family:verdana">This is a paragraph.</p>
<p style="font-family:'Courier New'">This is another paragraph.</p>
Try it Yourself »

Example

Set the size of text (with CSS):

<p style="font-size:30px">This is a paragraph.</p>
<p style="font-size:11px">This is another paragraph.</p>
Try it Yourself »

In our CSS tutorial you can find more information about CSS Text and CSS Fonts.