Open In App

HTML | <basefont> face Attribute

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Share
Report issue
Report

The HTML face Attribute is used to specify the default font-style of document. 
Syntax: 
 

<basefont face="font_family">

Attribute Values: It contains the value i.e font_Family which specify the various font style used for the text in the Document. 
Note: The <basefont>face Attribute us not supported by HTM 5 

Example: 
 

html




<!DOCTYPE html>
<html>
 
<head>
    <title>
      basefont face Attribute
  </title>
    <basefont color="red"
              size="9"
              face="courier, serif">
    <style>
        body {
            text-align: center;
        }
         
        .gfg {
            font-size: 40px;
            font-weight: bold;
            color: green;
        }
         
        .geeks {
            font-size: 25px;
            font-weight: bold;
        }
    </style>
</head>
 
<body>
    <div class="gfg">
      GeeksforGeeks
  </div>
    <div class="geeks">
      HTML basefont face Attribute
  </div>
     
 
<p>
      A computer science portal for geeks
  </p>
 
 
</body>
 
</html>


Output: 
 

Supported Browsers: The browser supported by <basefont> face Attribute are listed below: 
 

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

 



Last Updated : 27 Dec, 2021
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads