How to add two fonts in css ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to add two fonts in css ?

I have written code like this, @font-face { font-face: "name"; src: url("...."); } .class { font-family: "name"; } How to add second font ?

24th Jun 2021, 4:26 AM
Harsh
Harsh - avatar
2 Answers
0
hey ℋℜҜ you can put more than one font source and then use it in specific tag something like: .headers { font-family: "name"; } .paragraph { font-family: "other-name"; } wish you luck 🙏🏻
24th Jun 2021, 5:37 AM
Dror Krief
Dror Krief - avatar
0
Dror Krief , how to add another url ?
24th Jun 2021, 5:40 AM
Harsh
Harsh - avatar