Easy Tutorial
❮ Att Global Dir Att Global Contextmenu ❯

HTML <basefont> size Attribute

HTML <basefont> Tag

Example

Specifies the default font size for the page:


Browser Support

Except for Internet Explorer 9.0 and earlier versions, other browsers do not support the size attribute.


Definition and Usage

The size attribute of <basefont> is deprecated in HTML 4.01.

The size attribute specifies the default text size for the document.


Compatibility Notes

In HTML 4.01, the face attribute of the basefont element was deprecated; in XHTML 1.0 Strict DTD, the face attribute of the basefont element is not supported.

CSS Syntax (in the <head> section): <style>body{font-size: 10px}</style>

CSS Example: Specify Default Text Font for the Page

In our CSS tutorial, you can find more details about the font-size property.


Syntax

Attribute Values

Value Description
font_family Specifies the font for the text. To specify a priority list of font names, separate the font names with commas (e.g., <basefont face="verdana,arial,sans-serif" />).

❮ Att Global Dir Att Global Contextmenu ❯