FAQ: CSS Typography - Typography

This community-built FAQ covers the “Typography” exercise from the lesson “CSS Typography”.

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

Web Development

Learn CSS

FAQs on the exercise Typography

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

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!

why was the link element (Used to link the style-sheet) written twice (Here)?

<title>Typography Blog</title>
  <link rel="stylesheet" type="text/css" href="styles/reset.css">
  <link rel="stylesheet" type="text/css" href="styles/style.css">

Was this necessary?

If you look more closely you’ll see that the links are different: one is for reset.css and the other is for style.css. Style.css would be your main stylesheet that you used in the exercise, while reset.css will override browser defaults (as I think was discussed in a prior lesson on the border-box model).

1 Like

I have my own question. In step 7 it says: " Instead of linking the font from index.html, you realize it would be a better to import Google fonts in the files directly into stylesheets with the @font-face property."

Intentionally or not, it seems to imply that the @font-face method is better than the <link> method. Is that actually true, or another instance of the lesson’s wording being a bit ambiguous? I’ve read elsewhere that the two methods have similar performance, but that <link> might be slightly preferred.

For example see this post: https://css-tricks.com/dont-just-copy-the-font-face-out-of-google-fonts-urls/.

Sorry if my question digress away from the main topic of typography.

I don’t understand why the <li><a class="home" href="#top">FAVORITE FONTS</a></li> disappears from view unless I full screen the ‘web-browser’. I tried to change the display property of the list element or adding float property or changing the width, but can’t seem to bring that navigation element to view.
Can someone explain why and how would you go around to display this specific element regardless of the screen size? Thanks!

If you are a Notepad user (like me), then setting a monospaced font will do wonders. It will help you distinguish between characters lowercase l and uppercase I and other such pairs.

I’m alittle lost with what I did. Followed the video for the typography project. However after following to directly import the fonts to the stylesheets, things started to look abit different. Greyed out text and things staying red I assumed meant that code that I copy and pasted from the link didn’t work.
As I’m new to this not sure. Any help is greatly welcomed.

The code of the very first lesson of Typography consists of files under the font folder. How do we get to download those files or folders directly to run the web on our computer’s browser???

Here is the solution.



Can someone explain why are there 2 separate rulesets for these properties?
Wouldn’t putting all these declarations in the body selector do the same job?
What would be the purpose of separating these into 2 rulesets?

html {
font-size: 16px;
font-family: ‘Arial’, sans-serif;

body {
background-color: #F2F2F2;
text-align: center;