I cant pass the test, not working!

Its just saying " Your h2 element should be red.",
and the next test not working too!!!


<style>
	h2 {color: red;}
</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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.116 Safari/537.36.

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-css/use-css-selectors-to-style-elements

if you have a dark mode extension or other extension that changes the colors of the page you need to switch it off, it is interfering with the tests

@ltsari
Hey , the test is not working because the color required to pass the test is blue! You can check requirements on left side below the run test button.

1 Like

Thank you! Dark mode extension was problem!

try this <h2 style="color: red;">CatPhotoApp</h2>

That’s not within the scope of the lesson @shuarap. And here we try and guide people to an answer rather than giving it to them. Thank you for understanding and welcome to the forums.

Got it I misunderstood as I have been given the answer before