It tells me to make h2 blue, but it's already blue

Tell us what’s happening:
It tells me to make h2 blue, but it’s already blue. I’ve read that an extension could be causing the problem and I tried to run the Tests without the extension enabled, but it didn’t work. I also tried to restart the browser, but nothing changed. Is there a way to skip this part?
Your code so far


<style> 
h2 {color: blue;}
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>

<a href="#"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" 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="https://freecatphotoapp.com/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>
</style>
</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36 OPR/81.0.4196.61

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

It seems like you didn’t close your style element with a /style.

<style> 
h2 {color: blue;}

***</style>***

<h2>CatPhotoApp</h2>


edit: I didn’t see the closing tag, but the other comment did. My mistake.

Your closing style tag is in the wrong place. It should come after your CSS rules.

1 Like

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