Definition and Usage The size attribute specifies the font size of the content within the font element. Compatibility Notes The font eleme...
Definition and Usage
The size attribute specifies the font size 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-size: 10px">
Syntax
<font size="text-size"> |
Syntax Example
<font size="6"> |
Attribute Values
Value | Description |
---|---|
text-size | Specifies the default font size for the text/elements within the font element.Possible values are 1 to 7. Browser default is 3. |
Browser Support
The attribute is deprecated, but still supported in all major browsers.Example
Source | Output |
---|---|
<font size="4"> <p>God is great</p> </font> | God is great |