asp.net.ph

Skip Navigation Links

SIZE Attribute | size Property

Language References


Sets or retrieves the object’s font size.

Syntax


Inline <element SIZE = intSize...>
Script object.size = intSize ]

Possible Values


intSize Integer value in the range of 1 through 7, with 7 representing the largest font.

The property is read/write with no default value.

Remarks

This attribute sets the size of the font. Possible values:

  • An integer between 1 and 7. This sets the font to some fixed size, whose rendering depends on the user agent. Not all user agents may render all seven sizes.
  • A relative increase in font size. The value " +1" means one size larger. The value "-3" means three sizes smaller. All sizes belong to the scale of 1 to 7.

This attribute has been deprecated in favor of the CSS font-size property.

Example

The following example shows the difference between the seven font sizes:

<font size=1>size=1</font><br>
<font size=2>size=2</font><br>
<font size=3>size=3</font><br>
<font size=4>size=4</font><br>
<font size=5>size=5</font><br>
<font size=6>size=6</font><br>
<font size=7>size=7</font>
size=1
size=2
size=3
size=4
size=5
size=6
size=7

The following shows an example of the effect of relative font sizes using a base font size of 3:

<font size=-4>size=-4</font><br>
<font size=-3>size=-3</font><br>
<font size=-2>size=-2</font><br>
<font size=-1>size=-1</font><br>
<font size=+1>size=+1</font><br>
<font size=+2>size=+2</font><br>
<font size=+3>size=+3</font><br>
<font size=+4>size=+4</font>
size=-4
size=-3
size=-2
size=-1
size=+1
size=+2
size=+3
size=+4
Applies To

BASEFONT, FONT



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note