HTML size property
Example
Specify the default font size on the page:
This is a header
This is a paragraph
Try it »
Browser support





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
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