STUCK on 'Import a Google Font'

Here what’s happening:

I began learning CSS somewhere else and I decided to come to freecodecamp to supplement my pre-existing course. So I start going through the CSS section and I make my way to ‘Import a Google font’. I follow all of the instruction to the letter

Like so:


<link href="https://fonts.googleapis.com/css2?family=Lobster&display=swap" rel="stylesheet"> 
<style>
 .red-text {
   color: red;
 }

 h2 {
   font-family: 'Lobster';
 }

 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>getting petted</li>
   </ul>
   <p>Top 3 things cats hate:</p>
   <ol>
     <li>flea treatment</li>
     <li>thunder</li>
     <li>getting petted</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>

Yet, it still says:

// running tests
You should use an h2 CSS selector to change the font.
// tests completed

Which I believe I have done correctly. Is there something I’m missing, or is there some sort of bug? This is driving me up a wall. Can anyone help provide me some clarity as to what I’m doing wrong?

EDIT: reworded last sentence.

Hello and welcome to the FCC community~!

Lobster does not need to be in quotation marks here. Try removing them and see if you pass. :slight_smile:

Thank you so much! I didn’t even see that!

To be fair, I did copy and paste directly from fonts.google.com. That’ll teach me to blindly copy and paste…

1 Like