HTML <basefont> Tag
The <basefont> tag in HTML is used to set the default text-color, font-size, font-family of all the text in the browser. It is no longer supported in HTML5. So, as an alternate, we are using CSS in the code example. The <basefont> tag was supported in Internet Explorer 9, and earlier versions.
Attributes: This tag contains three optional attributes which are listed below:
- color: It is used to specify the default text-color of the document.
- size: It is used to specify the default font-size of the document.
- face: It is used to specify the default font-style of the document.
Example: This example illustrates the alternative of <basefont> tag by using the available CSS properties.
Example: Below example illustrates the <basefont> tag in HTML.
Supported Browsers: This tag is not supported by any browser, except Internet Explorer with the 11.0 version or lower versions.