Description

The <basefont> tag specifies the base font i.e. default font-color, font-size, or font-family for all the text in an HTML document.

The following table summarizes the usages context and the version history of this tag.

Parent:<head>
Content:None. It is an empty element.
Start/ End Tag:Start tag: required, End tag: forbidden
Version:HTML 2, 3.2, 4, 4.01

Warning: Don't use this tag since it is a non-standard tag and has been deprecated in HTML 4.01 and obsolete since HTML5. Use CSS font's properties, instead.

Syntax

The basic syntax of the <basefont> tag is given with:

HTML:<basefont>; XHTML:<basefont />

The example below shows the <basefont> tag in action.

<head>
    <title>The HTML Document</title>        
    <basefont color="red" size="5" face="arial, sans-serif">
</head>                           

Tag-Specific Attributes

The following table shows the attributes that are specific to the <basefont> tag.

Browser Compatibility

Element
<basefont>NoYesNoNoNo