how to change font-family of h1 h2 in html code example
Example 1: h2 custom font family html css
body {
font-family: 'Roboto', sans-serif;
}
Example 2: h2 custom font family html css
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto&display=swap">