Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

HTML | <basefont> size Attribute

  • Last Updated : 08 Aug, 2019

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.


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


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


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

My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!