how to link google fonts in html code example

Example 1: add google font html

<link rel="stylesheet" href=""> [Replace your font with the Source Code Pro font.]

Example 2: how to import google font

<!-- To Add Montserrat font or any font as such -->
<!-- Go to browse the font you like here, Montserrat-->
<!-- On the right click embbed and get the link similar to one given below-->
<link href="" rel="stylesheet">
<!-- add this ^ link inside your <head> tag i.e. before </head> -->
<!-- In css you can specify the font family as -->
font-family: "Montserrat", sans-serif;

Example 3: google fonts css

Check out the font names and change 'finger paint' to another font name to how different google font appears on webpage.
<!DOCTYPE html>
<link href=' Paint' rel='stylesheet'>
body {
    font-family: 'Finger Paint';font-size: 22px;

<h1>Finger Paint</h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>


Example 4: use google font in html

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

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

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


Css Example