With the help of <basefont> element you can set the default font of your webpage. Base font is applied on the whole document. <basefont> tag is not supported in HTML5 and in some browser. <basefont> element use following attributes:
Attribute Name | Function |
Color | set the Font color. |
Face | Set the Font Face. |
Size | Specify the Font size |
Syntax:
<basefont Attribute1="Value" Attribute2="Value"...... />
Example
The <basefont> element is set inside the head of this document:
<head>
<basefont size="4"/>
</head>
Color: The color attribute changes the color of the text that follows the basefont element.
<basefont size="2" color="purple">
This attribute takes as its value a recognized color name such as "blue" or "red" or a value specified in hexadecimal format for example, "#003366".
The face attribute allows the author to define fonts to be displayed .
Example
<basefont size="2" face="Courier New, Courier, monospace">
The size attribute for basefont is supposed to affect the base size of text for the document.
Example
<basefont size="7"/>
HTML Forms
HTML DECIMAL Color Code and HEX Color Code
HTML Nested Lists
Elements and Tags In HTML
4 Primary Tags In HTML
Create Your First Web Page in HTML
Attributes in HTML Tags
HTML DOCTYPE Declaration
HEAD Tag in HTML
Meta Tags in HTML
Body Tag in HTML
H1 to H6 HTML Elements
Basic HTML Elements
HTML Table Element
Basefont HTML Element
Formatting Element in HTML
Font Element In HTML
Style Element in HTML
CSS Properties
DIV in HTML Document
List in HTML
Creating Menus With HTML list
Creating Horizontal Menu With HTML list
HTML Image Tag
Hyperlinks In HTML