Import a Google Font . Stuck

Tell us what’s happening:

Not sure why I am still getting the message to Use an h2 CSS selector to change the font.

Your code so far


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

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

  p {
    font-size: 16px;
    font-family: monospace;
  }

  h2 {
    font-family : Lobster;
  }
</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; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Try using font-family: Lobster without the space

1 Like

A good little tip I applied to my own recent learning (having just finished the HTML/CSS part of FCC) is, if you’ve fully understood the question and think you’ve written the right answer and it’s not passing the requirements, then it will - 99% of the time - be a tiny typing error.

These are almost the hardest errors to spot as it’s not a mistake you’ve realised you’ve made. Anytime you do think “WTH, this is correct” spend a minute or two reading your code (not scanning it) and eliminate any uncertainty that it’s a typo.

Which as @leahleen points out - is what’s happened here :slight_smile:

2 Likes

Thank You for your tip ! :slight_smile: And also @leahleen is right after removing the space I passed the stage.

1 Like