basefont tag in html with examples

  1. The <basefont> tag specifies a default font-color, font-size, or font-family for all the text in a document.
  2. The basefont element is deprecated.
  3. 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.
  4. 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 :

<basefont size="3" color="aqua">
<p>20 Fingers 2 Brains</p>

Demo :

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.


Post a Comment