Google fonts | SoloLearn: Learn to code for FREE!

+3

Google fonts

How to use Google fonts API?

api

4/1/2019 5:49:35 AM

Codewick

3 Answers

New Answer

+4

- go to fonts.google.com - select a font -click select this style - copy this: <link href="https://fonts.googleapis.com/css2?family=<FONT_FAMILY>:[email protected]<FONT_WEIGHT_IN_PIXELS>&display=swap" rel="stylesheet"> -insert that in the head element of your html -copy this: font-family: '<FONT_FAMILY>',<ALTERNATIVE_FONTS; -insert it as a css rule to any element Now enjoy your font

+5

https://www.w3schools.com/howto/howto_google_fonts.asp https://www.sololearn.com/Discuss/980763/?ref=app

+4

https://youtu.be/2kH9grvS5ao