Google Fonts link for HTML code example

Example 1: link font awesome html

<link
      rel="stylesheet"
      href="https://use.fontawesome.com/releases/v5.13.0/css/all.css"
      integrity="sha384-Bfad6CLCknfcloXFOyFnlgtENryhrpZCe29RTifKEixXQZ38WheV+i/6YWSzkz3V"
      crossorigin="anonymous"
    />

Example 2: 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.]

Example 3: use google fonts in css

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

Example 4: embed google font css

<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&lang=en" />

Example 5: use google font in html

body {
    font-family: '*Insert google font';font-size: 22px;
}

Example 6: how to setup google fonts in html and css

font-family: '<custom_font_you_selected>', <fallback_font>

Tags:

Html Example