Deprecated in HTML5. Do not use.

<font point-size="">

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Attribute of
<font> HTML Tag
What does <font point-size=""> do?
Was used to specify the size of text. Deprecated. Use CSS instead.
The Font Element and it’s Attributes have been Deprecated This attribute has been deprecated and should not be used. Browser support for this attribute is limited and using it may produce unexpected results. Instead, use CSS to style fonts.

The font-size CSS rule sets the size of the fonts in the element. You can express the size using an absolute measurement or a relative measurement. For example, the following rule, added to an HTML document using a STYLE tag or in an external style sheet, sets the font size of <H2> elements to an absolute size of 80 points:

h2 {      font-size: 80pt;   } 

Which gives us this <h2>:

.makeItBig {font-size: 80pt;line-height: 1; margin: 0; font-weight:bold;}Hi There!

See our tutorial on Fonts and Web Typography to learn more.

Adam is a technical writer who specializes in developer documentation and tutorials.