
- CSS Tutorial
- CSS - Home
- CSS - Introduction
- CSS - Syntax
- CSS - Inclusion
- CSS - Measurement Units
- CSS - Colors
- CSS - Backgrounds
- CSS - Fonts
- CSS - Text
- CSS - Images
- CSS - Links
- CSS - Tables
- CSS - Borders
- CSS - Margins
- CSS - Lists
- CSS - Padding
- CSS - Cursors
- CSS - Outlines
- CSS - Dimension
- CSS - Scrollbars
- CSS Advanced
- CSS - Visibility
- CSS - Positioning
- CSS - Layers
- CSS - Pseudo Classes
- CSS - Pseudo Elements
- CSS - @ Rules
- CSS - Text Effects
- CSS - Media Types
- CSS - Paged Media
- CSS - Aural Media
- CSS - Printing
- CSS - Layouts
- CSS - Validations
- CSS3 Tutorial
- CSS3 - Tutorial
- CSS3 - Rounded Corner
- CSS3 - Border Images
- CSS3 - Multi Background
- CSS3 - Color
- CSS3 - Gradients
- CSS3 - Shadow
- CSS3 - Text
- CSS3 - Web font
- CSS3 - 2d transform
- CSS3 - 3d transform
- CSS3 - Animation
- CSS3 - Multi columns
- CSS3 - User Interface
- CSS3 - Box Sizing
- CSS Responsive
- CSS - Responsive Web Design
- CSS References
- CSS - Questions and Answers
- CSS - Quick Guide
- CSS - References
- CSS - Color References
- CSS - Web browser References
- CSS - Web safe fonts
- CSS - Units
- CSS - Animation
- CSS Resources
- CSS - Useful Resources
- CSS - Discussion
How to use Google Fonts on your web page?
To use Google Fonts on your webpage, the code is as follows −
Example
<!DOCTYPE html> <html> <head> <link href="https://fonts.googleapis.com/css?family=Permanent+Marker&display=swap" rel="stylesheet"/> <style> body { font-family: "Permanent Marker", cursive; font-size: 22px; } </style> </head> <body> <h1>Google fonts example</h1> <p> Lorem ipsum dolor sit amet consectetur, adipisicing elit. Debitis non a quos repudiandae doloribus cumque! Ex rem rerum aut maiores. </p> <h2>1 2 3 4 5 6 7 8 9 10</h2> </body> </html>
Output
The above code will produce the following output −
- Related Articles
- How to add Google Charts to your web page?
- How to add background music to your web page?
- Web Fonts in CSS
- How to add Scalable Vector Graphics (SVG) to your Web Page?
- What are different Navigator properties I can use on my web page?
- How to Increase Page Views on Your Blog
- How To Add Google Translate Button On Your Webpage?
- How to download all images on a web page at once?
- Center pagination on a web page with CSS
- Adding YouTube videos on an HTML web page
- Tips to browse web better on your phone
- Creating ‘Copy to Clipboard’ feature on a web page with JavaScript
- Hide a video tag on a web page - JavaScript
- How to completely fill web page with HTML canvas?
- Podcasts your video with google hangouts on air

Advertisements