How to link Google Fonts to an HTML/CSS doc? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to link Google Fonts to an HTML/CSS doc?

8th Aug 2017, 12:56 AM
r f
r f - avatar
5 Answers
16th Jun 2020, 5:12 PM
Vivek Kumar
Vivek Kumar - avatar
8th Aug 2017, 1:08 AM
Isomer
Isomer - avatar
+ 2
That is very simple, since you just need to copy the link that you provide when selecting a font in google fonts for example, that link is copied in the head of the html and in the css with the font-family property is put As value the name of the font to use. :)
10th Aug 2017, 3:04 AM
Ariana Rodríguez
Ariana Rodríguez - avatar
+ 1
https://code.sololearn.com/W676ElCbC6Ji/?ref=app see this code line number 13 and 14. he added google font in the html. it will be better if you search on youtube or google. have a lot tutorial
8th Aug 2017, 1:04 AM
Isomer
Isomer - avatar
0
hay varias formas de hacerlo. la mas comun es ir a "Google Fonts", Seleccionar cualquiera y clickearla para ver los links de enlace, clickear donde dice @import, copiar el link del css que es algo asi: @import url(';÷£#*#;#£'); y lo pegas en la linea 1 del css. ya con esto ha importado la fuente a tu proyecto, solo faltaria aplicarlo y para eso debes copiar el link que le daras a cada elemento el cual llama a esta fuente y es algo como: font-family: ndjdbsnsj....... este es el que debes de aplicar a cada elemento que desees.
22nd Aug 2017, 8:43 PM
Jose Aburto
Jose Aburto - avatar