HTMLFontElement: face 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.face = "arial";

Specifications

Specification
HTML
# dom-font-face

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.