HTML | <basefont> face Attribute

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.

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!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>

chevron_right


Output:

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

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

full-stack-img




My Personal Notes arrow_drop_up


If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.


Article Tags :
Practice Tags :


Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.