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
- The
HTMLFontElementinterface it belongs to.