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; } .Beginner { font-size: 25px; font-weight: bold; } </ style > </ head > < body > < div class = "gfg" > w3wiki </ div > < div class = "Beginner" > HTML basefont face Attribute </ div > < p > A computer science portal for Beginner </ p > </ body > </ html > |
Output:
Supported Browsers: The browser supported by <basefont> face Attribute are listed below:
- Google Chrome
- Internet Explorer
- Firefox
- Safari
- Opera