Issue using element selector for imported google font to h2

Tell us what’s happening:
Giving me the error “you should only use an h2 element selector to change the font”

I do not know how how again i am to apply the element selector to make that happen

  **Your code so far**

<link href="" rel="stylesheet" type="text/css">

.red-text {
  color: red;

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

<h2 class= "red-text">CatPhotoApp</h2>
<p class="red-text">Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="" 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="">
  <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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.93 Safari/537.36.

Challenge: Import a Google Font

Link to the challenge:

What is “GENERIC_NAME”. You’re supposed to replace that with a font name. In either case, you don’t need it - when I get rid of that, the code passes for me.

You probably also don’t need to create a new style block, but the test doesn’t mind.

1 Like

Yoo… thank you Kevin… issue solved

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.