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.

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.


To refer to Google fonts, we need to refer to Google stylesheet.

<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" />


Hope this helped! Please subscribe to our blog for more interesting posts on tech.



Comments

Popular posts from this blog

How to display AM/PM for a Date field in Canvas Apps

{When a HTTP Request is received trigger Power Automate Additional Options}

How to populate Person column in SharePoint List in Canvas Apps