html5 Site Icon CSS3 Site Icon CSS Site Icon

HTML4 Reference

HTML <basefont /> tag (deprecated)

Definition

The <basefont /> tag is a self closing tag used for specifying font, font size and font for the entire HTML document.

The CSS font property allows you to set the above values as well as others with more control, so use that instead.

Example


<basefont face="arial" />

Required Attributes

NONE

Optional Attributes

color - this attribute is deprecated, use CSS instead.

face - this attribute is deprecated, use CSS instead.

size - this attribute is deprecated, use CSS instead.

Common Attributes

class - specifies a classname for the element allowing you to apply the style of the predefined class to the content.


<basefont class="classname" />

id - specifies a unique id for the element allowing you to apply the style of the predefined id to the content.


<basefont id="idname" />

style - specifies an inline style for the element allowing you to apply the style to the content.


<basefont style="color:red;text-align:left" />

title - specifies extra information about the content.


<basefont title="information about the content" />

Language Attributes

dir - specifies the directional flow of the content.


<!-- The text will flow from left to right -->
<basefont dir="ltr" />

<!-- The text will flow from right to left -->
<basefont dir="rtl" />

lang - specifies a language code for the content of the element.


<basefont lang="en" />

Event Attributes

NONE



<base /> tag    << Prev          Next >>   <bdo> tag

go to home page Homepage go to top of page Top