HTML | <basefont> size Attribute

The HTML <basefont> size Attribute is used to specify the default font-size of document. There are two more attributes for <basfront> tag face and color that specify the color of the text and font-family of the text. The <basfront> tag is not supported in HTML 5.

Syntax:

<basefont size="number"> 

Attribute Value: It contains single value number which specify the font-size of the text document. It has a default value which is 3.

Example:

filter_none

edit
close

play_arrow

link
brightness_4
code

<!DOCTYPE html>
<html>
  
<head>
    <title>
        HTML basefont size Attribute
    </title>
      
    <basefont color="red" size="15" 
            face="courier, serif">
      
    <style>
        body {
            text-align: center;
        }
        h1 {
            font-weight: bold;
            color: green;
        }
        h3 {
            font-weight: bold;
        }
    </style>
</head>
  
<body>
    <h1>GeeksforGeeks</h1>
    <h3>HTML <basefont> size Attribute </h3>
      
    <p>A computer science portal for geeks</p>
      
    <p>
        <b>Note:</b> The basefont attribute
        is not supported in html 5
    </p>
</body>
  
</html>

chevron_right


Output:

Supported Browsers: The HTML <basefont>> size Attribute is not supported by any browsers.



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.