Issues when using CSS selectors to Style Elements

Tell us what’s happening:
Hey all, I saw this started happening to me yesterday. I’m not sure if it is broken or if I am doing something wrong but the challenge was to turn the h2 element to blue with a style element. I’ve done this but it still gives me error that that the only test I have failed is turning the h2 element blue, any help is much appreciated. I’ve seen other posts similar to this and have tried to follow along but still seem to be encountering issues. Thank you in advanced!

Your code so far


<style>
h2{
  color: blue;
}
</style>

<h2>CatPhotoApp</h2>

<main>
<p>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="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>
</main>

Your browser information:

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

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

Your code passes for me. Are you using an extension (like dark mode) that changes your browser CSS? You need to turn off browser extensions that change your CSS for these challenges, but we have a native dark mode that you can turn on in the settings.

1 Like

Awesome, thank you so much Jeremy, I do have some browser extensions active, so I will turn those off and try again. I appreciate your time!

Oh man, I feel so dumb, that worked perfectly! Thank you so much, I thought I was going insane!

1 Like

I’m glad it helped! You did all the hard work; I’ve just seen the problem before :smiley:

1 Like