HTML and CSS tips #13 "Don't forget to add the generic font category"

twitter logo github logo Updated on ・1 min read

When you use the custom font, don't forget to add the generic font category. It can thus be used as a reliable fallback for when an author’s custom font choices are not available.

Don't do it

body {
  font-family: 'Fira Sans';
}

You can use it instead

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

P.S: I share my experience with my Linkedin subscribers. Are you interested? Join to us! πŸ‘‰ https://www.linkedin.com/in/melnik909/

twitter logo DISCUSS
Classic DEV Post from Apr 5

How NOT to ask for help

Stas Melnikov profile image
Patreon blogger. I'm looking for my fans which I'll give away everything I know. If you're interested then join to me on Patreon πŸ‘‰ https://www.patreon.com/melnik909