HTML <basefont> Tag

Advertisements


Description

The HTML <basefont> tag is used to specify a base font for the document to use. This base font is applied to complete document. This tag is depreciated now.

Example

<!DOCTYPE html>
<html>
<head>
<title>HTML basefont Tag</title>
</head>
<body>
<basefont face="cursive,serif" color="#ff9900" size="4"/>
<p>The HTML basefont tag is now deprecated. You should use CSS font to set font properties instead.</p>
</body>
</html>

This will produce following result:

The HTML basefont tag is now deprecated. You should use CSS font to set font properties instead.

This result may vary browser to borwser.

Global Attributes

This tag supports all the global attributes described in - HTML Attribute Reference

Specific Attributes

The HTML <basefont> tag also supports following additional attributes:

AttributeValueDescription
color rgb(x,x,x)
#xxxxxx
colorname
Deprecated - Specifies the color of the text.
face font names separated by commaDeprecated - Specifies the font family of the text.
size1 to 7Deprecated - Specifies the font size of the text.

Event Attributes

This tag supports all the event attributes described in - HTML Events Reference

Browser Support

ChromeFirefoxIEOperaSafariAndroid
Not SupportedNot SupportedYesNot SupportedNot SupportedNot Supported

html_tags_reference.htm

Advertisements