The font-family
property defines the font of the text of an element. It accepts multiple values. We can start with the font we want, the one with high priority, and then end with a font that the browser picks when previous fonts are not available.
There are two types of font-family:
font-family: family-name generic-family;
The values are separated by a comma ,
.
.div-1 {
font-family: "Times New Roman", Times, serif;
}
.div-2 {
font-family: Arial, Helvetica, sans-serif;
}
family-name generic-name: A list of prioritized font family names and/or generic family names.