My blue is blue but it wants blue? (Please read my code)

Tell us what’s happening:
I’ve set the CSS style of my h2 to blue just like the instructions asked, but it keeps telling me my h2 needs to be set to blue. Am I crazy? I feel like I’m crazy.

  **Your code so far**
<!-- This is the bit that I was meant to add -->
h2 {
  color: blue;

<!-- And I was told to remove the style attribute from the h2 element, which I did -->
<p>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; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Edg/88.0.705.68.

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

do you have a dark mode extension? that would make the tests fail


No. Freaking. Way.

I mean it makes sense because the extension adjusts colors and etc but I’m amazed that’s what the problem is. I just disabled my dark mode extension and voila, it accepted it!

Thank you so much for your quick response and for being right on the first go!

it’s often the cause… a lot of the css challenges can fail for that. One challenge also for the ad-block

freecodecamp has a dark mode you can switch on in the settings

1 Like

Yup, I noticed that when poking around to find a help link. I’ll keep my extensions disabled while I keep learning! Thanks again for your help!

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