You can use Google Fonts if you’d rather not utilize any of the HTML standard fonts.
With over a thousand font options, Google Fonts can be used for free.
How To Use Google Fonts
Simply provide a unique style sheet link in the <head> section and use the font reference in the CSS.
Example
Here, we want to use a font named “Sofia” from Google Fonts:
Result:
FONT MUKAVA
Example
Here, we want to use a font named “Trirong” from Google Fonts:
Result:
FONT MUKAVA
Example
Here, we want to use a font named “Audiowide” from Google Fonts:
Result:
FONT MUKAVA
Note: Always list at least one fallback font when providing a font in CSS (to avoid unexpected behaviors). Thus, at the conclusion of the list, you should additionally include a generic font family (such as serif or sans-serif).
Use Multiple Google Fonts
Simply use the pipe symbol (|) to divide the font names if you want to use more than one Google font, like shown here:
Example
Request multiple fonts:
Result:
FONT MUKAVA
Styling Google Fonts
Naturally, you can use CSS to design Google Fonts whatever you’d like!
Example
Style the “Sofia” font:
Result:
FONT MUKAVA
Enabling Font Effects
Additionally, Google has made a variety of font effects available for use.
Add a special class name to the element that will employ the special effect after adding effect=effectname to the Google API. Font-effect- always comes first in the class name and concludes with effectname.
Example
Add the fire effect to the “Sofia” font:
Sofia on Fire
Result:
FONT MUKAVA
Simply use the pipe symbol (|) to divide the effect names if you want to request more than one font effect, like in this example: