HTML | <basefont> face Attribute
The HTML face Attribute is used to specify the default font-style of document.
Syntax:
<basefont face="font_family">
Attribute Values: It contains the value i.e font_Family which specify the various font style used for the text in the Document.
Note: The <basefont>face Attribute us not supported by HTM 5
Example:
html
<!DOCTYPE html>
< html >
< head >
< title >
basefont face Attribute
</ title >
< basefont color = "red"
size = "9"
face = "courier, serif" >
< style >
body {
text-align: center;
}
.gfg {
font-size: 40px;
font-weight: bold;
color: green;
}
.geeks {
font-size: 25px;
font-weight: bold;
}
</ style >
</ head >
< body >
< div class = "gfg" >
GeeksforGeeks
</ div >
< div class = "geeks" >
HTML basefont face Attribute
</ div >
< p >
A computer science portal for geeks
</ p >
</ body >
</ html >
|
Output:
Supported Browsers: The browser supported by <basefont> face Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera
Last Updated :
27 Dec, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...