Easy Tutorial
❮ Att Source Src Att Option Disabled ❯

HTML <basefont> face Attribute

HTML <basefont> Tag

Example

Specifies the default font for the page:


Browser Support

Only Internet Explorer 9 and earlier versions support the face attribute.


Definition and Usage

The face attribute of <basefont> is deprecated in HTML 4.01.

The face attribute specifies the default font for the text in the document.


Compatibility Notes

In HTML 4.01, the face attribute of the basefont element is deprecated; in XHTML 1.0 Strict DTD, the face attribute of the basefont element is not supported.

CSS Syntax (in <head> section): <style>body{font-family: courier, serif}</style>

CSS Example: Specify Default Text Font for the Page

In our CSS tutorial, you can find more details about the font-family property.


Syntax

Attribute Values

Value Description
font_family Specifies the font for the text. To specify a priority list of font names, separate the font names with commas (e.g., <basefont face="verdana,arial,sans-serif" />).

❮ Att Source Src Att Option Disabled ❯