HTML basefont tag


Specify a default color and size for text on page:
<basefont color="red" size="5" />
<h1>This is a header</h1>
<p>This is a paragraph</p>

Definition and Usage

The <basefont> tag specifies a default font-color, font-size, or font-family for all the text in a document.

Browser Support

The <basefont> tag is only supported by Internet Explorer, and should be avoided!

Differences Between HTML and XHTML

The basefont element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.

Optional Attributes

DTD indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

Attribute Value Description DTD
color rgb(x,x,x)
Deprecated. Use styles instead.
Specifies the text color.
face list_of_fontnames Deprecated. Use styles instead.
Specifies the font to use.
size default_text_size
(a number from 1 to 7)
Deprecated. Use styles instead.
Font size for font elements.

Standard Attributes

id, class, title, style, dir, lang, xml:lang

Event Attributes

HTML basefont tag Reviewed by 1000sourcecodes on 09:02 Rating: 5
Powered by Blogger.