- The <basefont> tag specifies a default font-color, font-size, or font-family for all the text in a document.
- The basefont element is deprecated.
- The basefont element was originally devised as a mechanism for resetting the default size for normal text using the seven font sizes that were available in early versions of HTML.
- The basefont element support font size from 1 to 7. The <basefont> tag is only supported by Internet Explorer, and should be avoided!
Example 1 :
<html> <head><title>BaseFont</title> <basefont size="3" color="aqua"> </head> <body> <p>20 Fingers 2 Brains</p> </body> </html>
In the above example, we have defined color and size in basefont tag. This style will be applied to all the elements on the document which does not have any style defined.