HTMLFontElement: size property - Web APIs | MDN

Value

A string.

Examples

js

// Assumes there is <font id="f"> element in the HTML

const f = document.getElementById("f");
f.size = "6";

Specifications

Specification
HTML
# dom-font-size

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.