Latest web development tutorials

HTML font face attribute

HTML font tags Reference Manual HTML <font> tag

Examples

The provisions of the text font:

<font face="verdana">This is some text!</font>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the face attribute.


Definition and Usage

HTML5 does not support the <font> tag. Please be replaced with CSS.

In HTML 4.01, <font> The face attribute obsolete .

face attribute specifies the <font> element of the Chinese font.

Tip: The value of face attribute can save several font names as an alternative. Please would you most like to display fonts on the first list of fonts when a font is not available the first time, use the back of the alternative font. You should be a common font on the last (serif, sans-serif, monospace, cursive or fantasy), so that when the font listed earlier are not available, the browser can find the font in the generic font library.


Compatibility Notes

In HTML 4.01, <font> The face attribute is discarded. Please be replaced with CSS.

CSS Syntax: <p style = "font-family: verdana">

Font settings of the text: CSS Examples

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


grammar

<font face="font_family">

Property Value

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


HTML font tags Reference Manual HTML <font> tag