HTML <basefont> Tag
Example: This example illustrates the alternative of <basefont> tag by using the available CSS properties.
The <basefont> tag 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: 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.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.