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 :

<html>
<head><title>BaseFont</title>
<basefont size="3" color="aqua">
</head>
<body>
<p>20 Fingers 2 Brains</p>
</body>
</html>
     

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.


0 comments:

Post a Comment