Specify the font size, font face and color of text:
![]()
The <font> tag is supported in all major browsers.
The <font> tag is not supported in HTML5. Use CSS instead.
The <font> element is deprecated in HTML 4.01.
The <font> tag specifies the font face, font size, and font color of text.
Tip: Use CSS to define the font, size, and color of text.
The <font> tag is not supported in HTML5, and is deprecated in HTML 4.01.
| Attribute | Value | Description |
|---|---|---|
| color | rgb(x,x,x) #xxxxxx colorname |
Not supported in HTML5. Deprecated in HTML 4.01. Specifies the color of text |
| face | font_family | Not supported in HTML5. Deprecated in HTML 4.01. Specifies the font of text |
| size | number | Not supported in HTML5. Deprecated in HTML 4.01. Specifies the size of text |
The <font> tag supports the following standard attributes in HTML 4.01:
| Attribute | Value | Description |
|---|---|---|
| class | classname | Specifies a classname for an element |
| dir | rtl ltr |
Specifies the text direction for the content in an element |
| id | id | Specifies a unique id for an element |
| lang | language_code | Specifies a language code for the content in an element |
| style | style_definition | Specifies an inline style for an element |
| title | text | Specifies extra information about an element |
More information about Standard Attributes.
The <font> tag does not support any event attributes in HTML 4.01.
More information about Event Attributes.
Your message has been sent to W3Schools.