Tsallaka zuwa abun ciki
Justice Tech School

Font Families and Web Fonts

font-family lists fonts in order with a generic fallback such as sans-serif. @font-face and services such as Google Fonts load custom fonts. Always include a fallback.

Example
<style>
.s { font-family: Georgia, "Times New Roman", serif } .m { font-family: "Courier New", monospace }
</style>
<p class="s">Serif text</p><p class="m">Monospace text</p>

Exercise

Last fallback.

font-family: Arial, ;

Quiz Test

Why list several fonts?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.