Do you have to put commas when using a font that consist of two or more words | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Do you have to put commas when using a font that consist of two or more words

i once put the font times new roman as the font family for CSS but i didn't put any commas and it still worked so should i still put commas anyway or not and these commas also work ' ' shoud i use these intead

17th Dec 2016, 1:02 AM
Red N Blu
Red N Blu - avatar
1 Answer
+ 2
Commas are basically used to load other fonts if the preceeding one(s) is(are) unavailable. ex: font-family : 'Segoe ui, Times new roman, arial'; So here, basically, it first tries to load the initial font, however, if it is not installed in the user computer it checks for the next one and so on (if none of the fonts are available, each browser has a default font that will be chosen automatically.
17th Dec 2016, 2:59 AM
CHMD
CHMD - avatar