HTML | <basefont> size Attribute
Last Updated :
08 Aug, 2019
The HTML <basefont> size Attribute is used to specify the default font-size of document. There are two more attributes for <basfront> tag face and color that specify the color of the text and font-family of the text. The <basfront> tag is not supported in HTML 5.
Syntax:
<basefont size="number">
Attribute Value: It contains single value number which specify the font-size of the text document. It has a default value which is 3.
Example:
<!DOCTYPE html>
< html >
< head >
< title >
HTML basefont size Attribute
</ title >
< basefont color = "red" size = "15"
face = "courier, serif" >
< style >
body {
text-align: center;
}
h1 {
font-weight: bold;
color: green;
}
h3 {
font-weight: bold;
}
</ style >
</ head >
< body >
< h1 >GeeksforGeeks</ h1 >
< h3 >HTML < basefont > size Attribute </ h3 >
< p >A computer science portal for geeks</ p >
< p >
< b >Note:</ b > The basefont attribute
is not supported in html 5
</ p >
</ body >
</ html >
|
Output:
Supported Browsers: The HTML <basefont>> size Attribute is not supported by any browsers.
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...