p.serif { font-family: "Times New Roman", Times, serif; } --why there is values separated with comma after the font name? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

p.serif { font-family: "Times New Roman", Times, serif; } --why there is values separated with comma after the font name?

Someone please clarify with details if possible.

9th Sep 2017, 12:44 PM
Abhishek Mukherjee
Abhishek Mukherjee - avatar
2 Answers
+ 3
If the browser doesnt support the first font it moves onto the next
9th Sep 2017, 12:48 PM
Enzo
Enzo - avatar
+ 3
It's fallback. In case first font can't find, would use the next more common font.
9th Sep 2017, 1:00 PM
Calviղ
Calviղ - avatar