Finally figured this out - Basic CSS: Import a Google Font

Basic CSS: Import a Google Font

I was stuck on this and the “get a hint” help section was not helping because it was 50/50 of it either working or not working. All I did is made sure that the “h2” element was before the “p” within the style tags and it submitted. So try just rearranging it to see if it fixes the issue:

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">

<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster;
  }

  p {
    font-size: 16px;
    font-family: monospace;
}
</style>

Welcome, matas.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).


Something to note:

  • Browser extensions can affect the tests. Especially, if they affect the way the browser caches, or uses JavaScript
  • We recommend the latest stable release of Chrome to complete the curriculum

For future posts, if you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

1 Like

Thank you! This is really helpful