Font families | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Font families

Is general family only put in HTML? And font family in CSS?

14th Feb 2020, 6:01 AM
Ifeoluwa akinremi-Wade
2 Answers
+ 2
Font family is used in this way: In head tag, <link href="...."> or <script src="..."></script> With the value you will get from Google Fonts or Font Awesome etc. Then in css: font-family: Font family name, cursive or serif/sans-serif etc ; Was that your question?
14th Feb 2020, 6:48 AM
NightFox
NightFox - avatar
0
You can also use web safe fonts in CSS, put it in body{ } . Example: font-family: "Times New Roman", Times, serif;
14th Feb 2020, 8:45 AM
Ignas Juodžiukynas
Ignas Juodžiukynas - avatar