From http://www.w3schools.com (Copyright Refsnes Data)

HTML <basefont> tag


The basefont element is deprecated.

Example

Specify a default color and size for text on page:

<head>
<basefont color="red" size="5" />
</head>

<body>
<h1>This is a header</h1>
<p>This is a paragraph</p>
</body>

Try it yourself!


Definition and Usage

The <basefont> tag specifies a default font-color, font-size, or font-family for all the text in a document.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The <basefont> tag is only supported by Internet Explorer, and should be avoided!


Differences Between HTML and XHTML

The basefont element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.


Tips and Notes

Tip: Use CSS to specify a default font-color, font-size, and font-family for all the text in a document.


Optional Attributes

DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

Attribute Value Description DTD
color rgb(x,x,x)
#xxxxxx
colorname
Deprecated. Use styles instead.
Specifies the text color.
TF
face list_of_fontnames Deprecated. Use styles instead.
Specifies the font to use.
TF
size default_text_size
(a number from 1 to 7)
Deprecated. Use styles instead.
Font size for font elements.
TF

Standard Attributes

id, class, title, style, dir, lang, xml:lang

For a full description, go to Standard Attributes.

Event Attributes

NONE


From http://www.w3schools.com (Copyright Refsnes Data)