JavaScript String fontsize()
Description
String fontsize() is deprecated in JavaScript.
Avoid using it.
It may cease to work in your browser at any time.
The fontsize()
method returns a string embedded in a <font> tag:
<font size="size">string</font>
The <font> tag is not supported in HTML5.
Syntax
string.fontsize(size)
Parameters
Parameter | Description |
size | Required. Font size. An integer between 1 and 7. |
Return Value
A string embedded in the <font> tag. |
❮ JavaScript String Reference