Definition and Usage The face attribute specifies the font of the content within the font element. Compatibility Notes The font element wa...
Definition and Usage
The face attribute specifies the font of the content within the font element.Compatibility Notes
The font element was deprecated in HTML 4.01 and is not supported in XHTML 1.0 Strict DTD.Use CSS instead.
CSS syntax: <p style="font-family: courier, serif">
Syntax
<font face="font-family"> |
Syntax Example
<font face="Arial, Times New Roman"> |
Attribute Values
Value | Description |
---|---|
font-family | Specifies the font for the text/elements within the font element.Default value: Browser dependent Possible values: A comma separated prioritized list of font family names to use. There are two types of font-family values:
|
Browser Support
The attribute is deprecated, but still supported in all major browsers.Example
Source | Output |
---|---|
<font face="Arial, Times New Roman"> <p>God is great</p> </font> | God is great |