Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
The fontsize()
method of String
values creates a string that embeds this string in a <font>
element (<font size="...">str</font>
), which causes this string to be displayed in the specified font size.
Note: All HTML wrapper methods are deprecated and only standardized for compatibility purposes. For the case of fontsize()
, the <font>
element itself has been removed from the HTML specification and shouldn't be used anymore. Web developers should use CSS properties instead.