Should i add space when i typing a font family with more than 2 words? On html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Should i add space when i typing a font family with more than 2 words? On html

Is it body { color: black; font-family: Comicsans; } Or body { color: black; font-family: Comic Sans; } Or body { color: black; font-family: Comic_Sans; } ?

14th Apr 2019, 4:41 AM
Dewangga Dharmawan
Dewangga Dharmawan - avatar
3 Answers
+ 3
You have to wrap the font name by quotes. Like this font-family: "Comic Sans",
14th Apr 2019, 4:44 AM
Seniru
Seniru - avatar
+ 2
Rather than getting confused with fonts name and classes use this : https://fonts.google.com/ If your on desktop there is copy button just click that and if your on smartphone click on link button and go to embedded and copy whole thing.
14th Apr 2019, 4:48 AM
Yugabdh
Yugabdh - avatar
+ 1
It's working, thanks And for the fonts name, i'll keep that on mind
14th Apr 2019, 4:52 AM
Dewangga Dharmawan
Dewangga Dharmawan - avatar