use google fonts with html css code example
Example 1: use google fonts in css
@import url('https://fonts.googleapis.com/css?family=Open+Sans&display=swap');
Example 2: font for css code google link
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
body{
font-family: 'Open Sans',serif;
}