css use a font h1 change font 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">