Change the Color of Text using CSS

Tell us what’s happening:
Hello, I need help from being stuck on how to change the h2 element to a different color using CSS style element

Your code so far

<h2 style="color:red">CatPhotoApp</h2>

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/change-the-color-of-text

Your code works fine for me.

Do you see any error messages? Does the color of the text in the phone emulator on the side of the screen change?

No error message but, after I run the test it it continues to show a red x stating that my h2 element should be blue and the h2 heading disappear as I’m coding the CSS style. I hope this is understandable.

You can try clearing your browser history and submitting the code above again.

Otherwise I don’t know what the problem is. I ran you exact code and it passes with no problems.

1 Like