Why it's not working? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
31st Dec 2021, 8:02 AM
Parth
Parth - avatar
2 Answers
+ 5
See there are multiple things you should know -> the link you are using is wrong and thats why error is coming Just go to google fonts select the font then click the top right corner and copy import or link code in your code -> Second thing the link u get won't work for @font-face because there is some differences I can't explain them there some interesting and informative link about them https://css-tricks.com/dont-just-copy-the-font-face-out-of-google-fonts-urls/ https://stackoverflow.com/questions/21464837/font-face-with-google-font/21464973 -> third , it is nothing just solution of your code https://code.sololearn.com/WHYOBbbiTd02/?ref=app
31st Dec 2021, 9:00 AM
Shino
Shino - avatar
+ 2
Oops sorry Well you have a problem with your H1 by removing H1 your code's work You should declare the font link in first line not in src https://code.sololearn.com/WRJ5w3wQV6vv/?ref=app see it hope you understand
31st Dec 2021, 8:43 AM
Aditya
Aditya - avatar