Posts

Showing posts with the label css

how to use google fonts

Get Started with the Google Fonts API This guide explains how to use the Google Fonts API to add fonts to your web pages. You don't need to do any programming; all you have to do is add a special stylesheet link to your HTML document, then refer to the font in a CSS style. A quick example Here's an example. Copy and paste the following HTML into a file: <html>   <head>     <link rel = "stylesheet"           href = "https://fonts.googleapis.com/css?family=Tangerine" >     <style>       body {         font-family : 'Tangerine' , serif ;         font-size : 48px ;       }     </style>   </head>   <body>     <div> Making the Web Beautiful! </div>   </body> </html> Then open the file in a modern web browser. You should see a page displaying the following, in the font cal...