Easy Tutorial
❮ Att Canvas Height Att Video Muted ❯

HTML <basefont> Tag

Example

Set the default color and size of text on the page:


Browser Support

Only IE 9 and earlier versions of IE browsers support the <basefont> tag. This tag should be avoided.


Tag Definition and Usage

In HTML 4.01, the <basefont> element is deprecated.

The <basefont> tag defines the default color, size, and font for all text in the document.


Tips and Notes

Tip: Use CSS to specify the default color, size, and font for text in the document.


Differences Between HTML 4.01 and HTML5

HTML5 does not support the <basefont> tag, and it is deprecated in HTML 4.01.


Optional Attributes

Attribute Value Description
color color HTML5 does not support. HTML 4.01 is deprecated. Specifies the default color of text in the document.
face font_family HTML5 does not support. HTML 4.01 is deprecated. Specifies the default font for text in the document.
size number HTML5 does not support. HTML 4.01 is deprecated. Specifies the default size of text in the document.

Standard Attributes

In HTML 4.01, the <basefont> tag supports the following standard attributes:

Attribute Value Description
class classname Specifies a class name for an element
dir rtl <br>ltr Specifies the text direction of the content in an element
id id Specifies a unique id for an element
lang language_code Specifies the language of the content in an element
style style_definition Specifies an inline style for an element
title text Specifies extra information about an element

For a full description, visit Standard Attributes.


Event Attributes

In HTML 4.01, the <basefont> tag does not support any event attributes.

For a full description, visit Event Attributes.

❮ Att Canvas Height Att Video Muted ❯