Posts Tagged ‘HTML basefont code’

HTML basefont tag


Description:

The HTML basefont tag specifies a default font-color, font-size, or font-family for all the text in a document. With the help of the basefont tag you can establish the default value of the font in your web page.We recommend to specify a "basefont" in case you will use the font in HTML.

Note: The <basefont> tag is not supported in HTML5. Use CSS instead.

Differences Between HTML 4.01 and HTML5:

The "basefont" tag is not supported in HTML5, and is deprecated in HTML 4.01.

Example:

<basefont face="cursive,serif" color="#ff9900" size="4"/>
<p>The HTML basefont tag is now deprecated. You should use CSS font to set font properties instead.</p>

This will produce folloiwng result:

The HTML basefont tag is now deprecated. You should use CSS font to set font properties instead.

This result may vary browser to borwser.

Attributes:

Attribute

Value

Description

color rgb(x,x,x)
#xxxxxx
colorname
Deprecated – Specifies the color of the text
face font names separed by comma Deprecated – Specifies the font family of the text
size 1 to 7 Deprecated – Specifies the font size of the text
Designed for Mytoptutorials.com