Answers for "how to use google fonts in html and css"

6

add google font html

<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Code+Pro"> [Replace your font with the Source Code Pro font.]
Posted by: Guest on March-24-2021
4

import google font css

@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
.generic_class {
	font-family: 'Open Sans', sans-serif;
}
Posted by: Guest on November-10-2020
0

font for css code google link

@import url(https://fonts.googleapis.com/css?family=Open+Sans);

body{
   font-family: 'Open Sans',serif;
}
Posted by: Guest on August-24-2020

Code answers related to "how to use google fonts in html and css"

Browse Popular Code Answers by Language