FAQ: A Closer Look at CSS - font-family

This community-built FAQ covers the “font-family” exercise from the lesson “A Closer Look at CSS”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Make a Website

FAQs on the exercise font-family

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

I have noticed sometimes that in CSS programs, fonts in the font-family section are in single-quotes. Why is that so?

Single-quotes, double-quotes, it’s a matter of preference.

But if you really care, this is what Google recommends: https://google.github.io/styleguide/htmlcssguide.html#CSS_Quotation_Marks

Hi there,

When changing the font to Palatino on the main CSS page, we included ‘Palatino Linotype’ in the brackets as well as the backup font. What was the reason behind this and what was the impact on the function.

Thanks,

2 Likes

What was the Palatino Linotype for?
And why was it in quotes when the other ones weren’t?