<basefont> tag

HTML <basefont> tag

As the <basefont> tag is not supported in HTML5, it is better to use CSS Fonts instead.

It is used to specify font size, color & font face for the HTML document.

Syntax:
<basefont face=”font-family-name” color=”color-name” size=”value”/> 

Example

<basefont face="Georgia" color="red" size="5"/>

Difference between HTML4.01, XHTML and HTML5

HTML4 XHTML HTML5
Deprecated in HTML4 End tag is required like <basefont   /> Completely removed from HTML5

Attributes used with <basefont> tag

Attribute Description
color Sets a default base color of the text for the HTML document.
(HTML5 does not support this attribute).
size Sets a default size of the text for the HTML document. This takes a numeric value.
(HTML5 does not support this attribute).
face Sets a default font face for the text using a font-family for the HTML document.
(HTML5 does not support this attribute).

Supporting Browsers

The browser support for the <basefont> tag is NIL.

Browser support of the basefont tag

Related Tags

<font>.

Tutorials for all brains!