Properties
CSS
font-family
The font-family property is a prioritized list of font family names and/or generic family names.
font-family: [[ <family-name> | <generic-family> ] [, <family-name>| <generic-family>]* ] | inherit
| Initial: | depends on user agent |
| Applies To: | all elements |
| Inherited: | yes |
| Percentages: | NA |
| Media: | visual |
Values
font-family: value;
| Value: | Description: |
| family-name | Name of a font family of choice |
| generic-family | Name of a generic font family as an alternative |
| inherit | Takes the same computed value as the property for the element's parent |
DOM
[window.]document.getElementById("element-id").style.fontFamily = "font-family";
