Specify a default font-color and font-size for text on page:
![]()
The <basefont> tag is only supported in Internet Explorer 9, and earlier versions.
The <basefont> tag is not supported in HTML5. Use CSS instead.
The <basefont> element is deprecated in HTML 4.01.
The <basefont> tag specifies a default font-color, font-size, or font-family for all the text in a document.
Tip: Use CSS to specify a default font-color, font-size, and font-family for the text in a document.
The <basefont> tag is not supported in HTML5, and is deprecated in HTML 4.01.
| Attribute | Value | Description |
|---|---|---|
| color | color | Not supported in HTML5. Deprecated in HTML 4.01. Specifies the default color for text in a document |
| face | font_family | Not supported in HTML5. Deprecated in HTML 4.01. Specifies the default font for text in a document |
| size | number | Not supported in HTML5. Deprecated in HTML 4.01. Specifies the default size of text in a document |
The <basefont> 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 <basefont> tag does not support any event attributes in HTML 4.01.
More information about Event Attributes.
Your message has been sent to W3Schools.