Your h2 element should be blue error

Tell us what’s happening:
Hello everybody! I am new to HTML and CSS. I am now faced with this problem which I have been racking my brains for almost 30 minutes to figure out what is going wrong but I still can’t. I was told to change the color of the text CatPhotoApp into blue and I did but it kept telling me “Your h2 element should be blue”. Now it will not let me move on to the next task. Please tell me if I made a mistake somewhere. Thanks in advance!

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="/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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36.

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

Are you using a browser extension that changes the colors of websites?

2 Likes

I use an extension that turns all the websites to dark mode. Is that the problem?

I turned it off and everything is OK now. Thank you so much!

you can switch on the native dark mode in the settings

2 Likes

That is possible? I will search that on Google. Thank you for the recommendation!

go to the freecodecamp settings for the native dark mode, which will not interfere with the challenges

image

1 Like