W3cubDocs

/Haxe JavaScript

FontElement

package js.html

extends ElementDOMElementNodeEventTarget

Available on js

Implements the document object model (DOM) representation of the font element. The HTML Font Element font defines the font size, font face and color of text.

Documentation HTMLFontElement by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Variables

color:String

Is a DOMString that reflects the color HTML attribute, containing either a named color or a color specified in the hexadecimal #RRGGBB format.

face:String

Is a DOMString that reflects the face HTML attribute, containing a comma-separated list of one or more font names.

size:String

Is a DOMString that reflects the size HTML attribute, containing either a font size number ranging from 1 to 7 or a relative size to the size attribute of the basefont element, for example -2 or +1.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/FontElement.html