Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML basefont size attribute

HTML size property

HTML basefont Tag Reference HTML tag

Example

Specify the default font size on the page:

This is a header

This is a paragraph

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

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


Definition and Usage

HTML5 no longer supports the tag. Please use CSS instead.

The size attribute was deprecated in HTML 4.01.

The size attribute specifies the default size (font size) of text in the document.


Compatibility notes

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

CSS syntax ( section):

CSS example: specify the default text font for the page

In our CSS tutorial, you can find more details about Details of the font-family attribute.


Syntax

).

HTML basefont Tag Reference HTML tag