HTML basefont Tag

HTML basefont Tag defines default color and font size of the text of Web Page.

Syntax of HTML basefont Tag

The Syntax of HTML basefont Tag is shown below. It is self closing tag.

<!DOCTYPE html>
<html>
<head>
<basefont color="blue" size="15">
</head>
<body>
</body>
</html>

Example of HTML basefont Tag

Simple example of basefont tag is given below.

<!DOCTYPE html>
<html>
<head>
<basefont color="blue" size="15">
</head>
<body>
<p>How To Code School</p>
</body>
</html>

In the above example as you can see, the default font size and color of text How To Code School are defined in the head section of document.

Browser Support for HTML basefont Tag

HTML Basefont Tag is not supported by any major browser including Internet Explorer. However Internet Explorer 9 or earlier versions did have a support for basefont tag.

Attributes used in HTML basefont Tag

Following Attributes are used in HTML basefont Tag.

color attribute

It is not supported in HTML5. It sets the text color of element, but we use CSS for that now.

size attribute

It defines the size of text. It is not supported in HTML5

face attribute

It defines default font for text but it is not supported in HTML5.

Support in HTML5

HTML basefont Tag is not supported in HTML5, however it was supported in HTML4.01.

HTML basefont Tag Video

Watch our video on HTML basefont Tag and subscribe our Youtube Channel.

HTML anchor Tag HTML abbr Tag HTML acronym Tag HTML address Tag HTML applet Tag HTML area Tag HTML article Tag HTML aside Tag HTML audio Tag HTML b Tag HTML base Tag HTML basefont Tag HTML bdi Tag HTML bdo Tag HTML big Tag HTML blockquote Tag HTML body Tag HTML br Tag HTML Button Tag HTML Canvas Tag HTML Caption Tag HTML Center Tag HTML Cite Tag HTML Code Tag HTML Col Tag HTML colgroup Tag HTML comment Tag HTML data Tag HTML datalist Tag HTML dd Tag HTML del Tag HTML details Tag HTML dfn Tag HTML dialog Tag HTML dir Tag HTML div Tag HTML dl Tag HTML Doctype Tag HTML dt Tag HTML em Tag HTML embed Tag HTML fieldset Tag HTML figcaption Tag HTML figure Tag HTML font Tag HTML footer Tag HTML form Tag HTML frame Tag HTML frameset Tag HTML Heading Tags HTML head Tag HTML header Tag HTML hr Tag HTML html Tag HTML i Tag HTML iframe Tag HTML img Tag HTML input Tag HTML ins Tag HTML kbd Tag HTML label Tag HTML legend Tag HTML li Tag HTML link Tag HTML main Tag HTML map Tag HTML mark Tag HTML meta Tag HTML meter Tag HTML nav Tag HTML noframes Tag HTML noscript Tag HTML object Tag HTML ol Tag HTML optgroup Tag HTML option Tag HTML output Tag HTML p Tag HTML param Tag HTML picture Tag HTML pre Tag HTML progress Tag HTML q Tag HTML rp Tag HTML rt Tag HTML ruby Tag HTML s Tag