What i do wrong in test "Basic CSS: Import a Google Font"

Create a font-family CSS rule that uses the Lobster font, and ensure that it will be applied to your h2 element.
Use an h2 CSS selector to change the font.

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
  .red-text {
    color: red;
  .font {
    font-family: Lobster;

  p {
    font-size: 16px;
    font-family: FAMILY_NAME, monospace;

<h2 class="font">CatPhotoApp</h2>
  <p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>
  <a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
    <p>Things cats love:</p>
      <li>cat nip</li>
      <li>laser pointers</li>
    <p>Top 3 things cats hate:</p>
      <li>flea treatment</li>
      <li>other cats</li>
  <form action="/submit-cat-photo">
    <label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
    <label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
    <label><input type="checkbox" name="personality" checked> Loving</label>
    <label><input type="checkbox" name="personality"> Lazy</label>
    <label><input type="checkbox" name="personality"> Energetic</label><br>
    <input type="text" placeholder="cat photo URL" required>
    <button type="submit">Submit</button>

You do not have to create this.
You have to create h2 css selector like this:

.... your style here....


Remove FAMILY_NAME from your code.
Use lobster and then write monospace separated by comma.
Does that help?


thanks. that help. But why dont work with FAMILY_NAME?

FAMLIY_NAME refers to font in general.
Lobster is one of the font-family names which is to be used here.
Does that help?

Thanks. Yes it help!


I’m sorry, I have a similar question relating to this topic. I’m really not sure what I’m doing wrong here- I’m trying to create a font-family CSS rule that uses the Lobster font and I keep getting stuck. Please, help.

To make debugging easier, you should really post your actual code, not a screenshot (if you use ask for help button a post will be precompiled with your code)

Plus if you said what tests you are not passing too, would help


Thank you for replying. I will do that now. Please, bear with me, I’m new to all of this.

I’m currently on the Basic CSS: Import a Google Font stage. (Is this what you mean by test?)

I mean what appear in the console when you press run the tests
I am also not going to retype your code to check what’s wrong, I can only guess

It didn t helped for me .??

Edit: I see your other thread now. Please do not cross post, it is just confusing.

Without seeing your code we can’t help.

  1. Use the code button </> to format any code you post (more info).

  2. When you need help with the challenges you can click “Get Help” and then “Ask for help”. This will make a forum thread with your code and some information.