Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML basefont face attribute

HTML face attribute

HTML basefont Tag Reference HTML tag

Example

Specify the default font on the page:

This is a header

This is a paragraph

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Definition and Usage

HTML5 does not support tag. Please use CSS instead.

The face attribute was deprecated in HTML 4.01.

The face attribute specifies the default font of 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 ( section):

CSS example: specify the default text font for the page

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


Syntax

).

HTML basefont Tag Reference HTML tag