HTML basefont size Attribute
HTML <basefont> tag
Definition and Usage
The size attribute specifies the base (default) font size for a page.
Compatibility Notes
The basefont element was deprecated in HTML 4.01
and is not supported in XHTML 1.0 Strict DTD.
Use CSS instead.
CSS syntax (in <head>): <style>body{font-size: 10px}</style>
In our CSS tutorial you can find more details about the
font-size property.
Syntax
<basefont size="text-size" />
|
Syntax Example
Attribute Values
Value |
Description |
text-size |
Specifies the default font size for the page. Possible values are 1 to 7. Browser default is 3.
|
Browser Support

The attribute is deprecated, only supported by Internet Explorer, and should be avoided.
Example
<html>
<head>
<basefont size="6" />
</head>
<body>
<p>Hello. Welcome to W3Schools.</p>
</body>
</html>
|
Try-It-Yourself Demos
basefont
size attribute example
Set the default font size with the basefont size attribute.
In CSS:
default
font-size example
Set the default font size with CSS.
HTML <basefont> tag
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|