Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project









TAG:  basefont    deprecated 4.0

<basefont> ... </basefont>
Available in versions: 3.2
Browser compatibility: Explorer 4, 5  Netscape 4
 
The <basefont> tag is officially deprecated effective with HTML 4.0. It has been superseded by style sheets.
 
The basefont tag is used to set the font appearance. If placed between the head tags, the font values are set for the entire document. This tag can also be placed anywhere inside the body of the document where it can be used to set the font values for a local block of text. Under these circumstances, the basefont tag in the head is overridden.
 
The closing tag is optional. When the closing tag is used, it causes the font size to revert to the default value of 3. Therefore the following are equivalent:
 
Code:
</basefont>
<basefont size="3">

 
Core Attributes
 
id   
 
Attributes
 
color
The color attribute is used to set the color of the text. This attribute is not recognized by some browsers.
 
face
The face attribute is used to set the type (font face) of text, such as arial or courier. This attribute is not recognized by some browsers.
 
size
The size attribute is used to set the size of the text. The range is 1 to 7, and the default is 3. When you use + or - values to set the size using the font tag, the new size will be relative to the default value of 3, or to the value set using this attribute.
 
In this example, only the word DevGuru is affected by the tag. Beware that the color and face attributes are not recognized by some browsers.
 
Code:
<basefont color="red" face="arial" size="7">DevGuru</basefont> is the best!
 
Output:
DevGuru is the best!


 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information