Skip to content
Related Articles

Related Articles

Improve Article

HTML | <font> face Attribute

  • Last Updated : 28 May, 2019

The HTML <font> face Attribute is used to specify the font family of the text inside <font> element.

Syntax:

<font face="font_family">

Attribute Values: It contains single value font_family which is used to specify the font family. Several font family can be used by separating comma.

Note: The <font> face attribute is not supported by HTML5.

Example:






<!DOCTYPE html>
<html>
  
<head>
    <title>
        HTML font face Attribute
    </title>
</head>
  
<body>
    <font size="6" face="verdana">
            GeeksforGeeks!
        </font>
    <br>
  
    <font size="6" face="arial">
            GeeksforGeeks!
        </font>
    <br>
  
    <font size="6">
            GeeksforGeeks!
        </font>
</body>
  
</html>

Output:

Supported Browsers: The browser supported by HTML <font> face attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera

Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML  course.

My Personal Notes arrow_drop_up
Recommended Articles
Page :