HTML basefont Tag

Example

Specify a default font-color and font-size for text on page:
<head>
<basefont color="red" size="5" />
</head>

<body>
<h1>This is a heading</h1>
<p>This is a paragraph.</p>
</body>
Teach Yourself  by BH24 HTML Editor Tool!

The <basefont> tag is only supported in Internet Explorer 9, and earlier versions.

Definition and Usage

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.

Tips and Notes

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