Changing h2 font with lobster font family I cant do it please help

Tell us what’s happening:
the task is changing h2 font with lobster font family. ive imported and changed it but still i’m getting this error please help me
// running test
Use an h2 CSS selector to change the font.
// tests completed

Your code so far


<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css"
>
<style>
  .red-text {
    color: red;
  }
  h2 {
    font-family: Lobster, myLobster;
  }
  p {
    font-size: 16px;
    font-family: monospace;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>
<main>
  <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>
  
  <div>
    <p>Things cats love:</p>
    <ul>
      <li>cat nip</li>
      <li>laser pointers</li>
      <li>lasagna</li>
    </ul>
    <p>Top 3 things cats hate:</p>
    <ol>
      <li>flea treatment</li>
      <li>thunder</li>
      <li>other cats</li>
    </ol>
  </div>
  
  <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>
  </form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 YaBrowser/18.6.1.770 Yowser/2.5 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/import-a-google-font

Remove myLobster from the code, it should be only Lobster

thank you for your answer i dont know how i did such a stupid mistake :smiley:

:smile: we all do…!!

I had many problems like this when I first tried freecodecamp it would take me forever sometimes to solve the simplest things :slight_smile:

What really helped me A TON was a guru on youtube I think his channel is traversy media?

He has a complete html and CSS crash course about an hour long each and he explains things very clearly.

He also has a ton of other things that could help you in this curriculum including javascript and python.

I hope you found this stuff useful I know I did now im blowing through these exercises like crazy with very little difficulty!

Feel free to message me if you have anymore questions i am still new but I feel the best way to learn is through others who are on the same level as you :slight_smile:

thank you for recommendation :). I subscribe and I recommend you Derek Banas channel he explain super quick and clear. :slight_smile:

1 Like

thank you for your offer ill ask if ill have any questions and you can also ask me :slight_smile: . I would like to help

1 Like

Good luck on your journey friend!