How do you include fonts (web fonts) in a website

Including web fonts in a website can enhance typography and improve the overall aesthetic appeal. There are several ways to integrate web fonts into your site, commonly using services like Google Fonts or Adobe Fonts.

Keywords: web fonts, typography, Google Fonts, Adobe Fonts, CSS
Description: Learn how to effectively include web fonts in your website to enhance design and readability using various methods including external services and @font-face rule.

Here's an example of how to include a Google Font in your CSS:

<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap" rel="stylesheet">

body { font-family: 'Roboto', sans-serif; }

Keywords: web fonts typography Google Fonts Adobe Fonts CSS