You are here: Reference > HTML > attributes > point-size (font)

point-size attribute (font)

Browser support:
Specifies an explicit point size for the font.
The font tag is deprecated. Use the span element or other text elements instead.

Possible values:

Positive Integer that specifies the size of point.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the point-size attribute:
<font point-size="6">small text</font>
<font point-size="16">large text</font>
Did you find this example helpful? yes no

Example HTML code 2:

<span style="font-size:8px">small text</span>
<br />
<span style="font-size:18px">large text</span>
Did you find this example helpful? yes no

Supported by tags:

User Contributed Comments

Post Content

Post Content