Latest web development tutorials

HTML basefont face property

Tag Reference HTML basefont HTML <basefont> tag

Examples

Default Fonts provisions on the page:

<head>
<basefont face="courier, serif" />
</head>

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

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Definition and Usage

HTML5 does not support <basefont> tag. Use CSS instead.

<Basefont> The face attribute is deprecated in HTML 4.01.

face attribute specifies the default font of the Chinese document.


Compatibility Notes

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

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

CSS Example: The default text font for the page specified

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


grammar

<basefont face="font_family" />

Property Value

描述
font_family 规定文本的字体。如需规定若干字体的优先表,请使用逗号将字体名称分开(比如 <basefont face="verdana,arial,sans-serif" />)。


Tag Reference HTML basefont HTML <basefont> tag