CSS · CSS Advanced · Lesson 46
CSS Web Fonts
@font-face and Google Fonts.
Web fonts allow web designers to use fonts that are not installed on the user's computer.
Google Fonts
Example
<link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">
<style>
h1 { font-family: "Pacifico", cursive; color: #04AA6D; }
</style>
<h1>Hello Google Fonts</h1>
The @font-face Rule
Keep reading “CSS Web Fonts”
Sign up to read the full lesson (2 more parts), try every example in the live editor, and take the 5-question quiz.