@ibrahimherithSubmitted almost 2 years ago
Hello, what is the best practice between adding google fonts links in html file and in css file?
Hello, what is the best practice between adding google fonts links in html file and in css file?
you need to copy the link and put in the <head> of your HTML
Example:
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link href="https://fonts.googleapis.com/css2?family=Fraunces:opsz,[email protected],700&display=swap" rel="stylesheet">after this you can use the font-family in your css file.
Example: font-family: 'Fraunces', serif;