Latest

recent

HTML basefont size Attribute

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>

Syntax

<basefont size="text-size" />

Syntax Example

<basefont size="6" />

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 1000sourcecodes.com</p>
</body>
</html>
HTML basefont size Attribute Reviewed by 1000sourcecodes on 08:56 Rating: 5
Powered by Blogger.