How to use Google fonts in your Web Page
Welcome to Anything and Everything in Tech blog! Today's tip is how to use google fonts in your web applications.
Hope this helped! Please subscribe to our blog for more interesting posts on tech.
CSS has inbuilt support for a wide variety of fonts. However, Google fonts are not recognized by CSS.
Let's look at the sample HTML.
This is a sample text that should be displayed in Noto Sans
It uses Noto Sans as font. When I browse the HTML file, the font does not take effect.
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=<google-font-family>" />
In our case, the URL should be referring to Noto Sans format.
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Noto+Sans" />
Comments
Post a Comment