HTML basefont size property
Examples
The default font size on a predetermined page:
<head>
<basefont size="7" />
</head>
<body>
<h1>This is a header</h1>
<p>This is a paragraph</p>
</body>
<basefont size="7" />
</head>
<body>
<h1>This is a header</h1>
<p>This is a paragraph</p>
</body>
try it"
Browser Support
In addition to Internet Explorer9.0 and earlier versions of IE, other browsers do not support the size attribute.
Definition and Usage
HTML5 is no longer supported <basefont> tag. Use CSS instead.
<Basefont> The size attribute is deprecated in HTML 4.01.
size attribute specifies the default size of the Chinese document (font).
Compatibility Notes
In HTML 4.01, the attribute is deprecated face basefont element; in XHTML 1.0 Strict DTD not supported face attribute basefont element.
CSS syntax (<head> section): <style> body {font-size: 10px} </ style>
CSS Example: The default text font for the page specified
In our CSS tutorial you can find more information about the details of the font-family property .
grammar
<basefont size="number" />
Property Value
value | description |
---|---|
font_family | Prescribed font text. To specify the priority list several fonts, font names separated by commas (eg <basefont face = "verdana, arial, sans-serif" />). |
HTML <basefont> tag