Basic CSS - Changing text color - glitch

Tell us what’s happening:
Now, the issue does not lie with the challenge, as it’s clear what I need to do. I had to add a style attribute, such that h2 would become red. It just, for reasons unknown to me, refuses to accept the correct answer. With the Basic HTML course that came before I had no such issues. I attempted to skip to the challenge after this one, but it yet again tells me that I didn’t make the text turn to the correct color, even though I did.

When I clicked on ‘Get a Hint’ I found older posts, saying something about email activation being necessary, yet you make an account using TOTP codes that you receive in your email inbox, so that confused me a little bit. On the same ‘get a hint’ thread I found a post talking about how new users are limited in the speed with which they can advance through the challenges, is this true?

I would very much appreciate any help or pointers you can give me.
Thank you for reading my post!

Your code so far


<h2 style="color: red;">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 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0.

Challenge: Change the Color of Text

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-css/change-the-color-of-text#

Your code is passing for me.

If you have a dark mode extension installed you need to disable it. You can use the dark mode theme found under the profile settings instead.

Ah, that’s the cause of the problem! Thanks a lot for looking into it! Without this tip I don’t think I would’ve realized that my dark mode extension was the culprit.

No problem it is a common issue, so much so that we really should have a note about it at the start of the curriculum.

Happy coding.

2 Likes