Change the Color of Text to red

Hello, I can’t understand why when I run the test I receive the message:
// running tests

Your h2 element should be red.

// tests completed"

Your code so far

<h2 style ="color: red;">CatPhotoApp</h2>
  <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="/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>

Your browser information:

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

1 Like

Looks good to me! Just copied your code and it passed!!! :vulcan_salute:

1 Like

Are you by any chance using Edge, IE, or Safari as your browser? Free Code Camp has been updated to use newer technologies. It makes the application much faster and it means that we can go much longer without having to do a huge migration like the recent one. However, Edge, Internet Explorer, and Safari are very bad about choosing not to adhere to standards and support new functionality in JS and CSS. Right now, that means that these browsers exhibit lots of unexpected behavior. If you become a web developer you will come to hate these browsers with every fiber of your being.


Are you maybe using an extension for dark mode? That would change the color of the text and could be a cause for it not passing

Also, you shouldn’t have a space after style in style ="..."

1 Like

Νο, I m using chrome!

Yes, I have a plugin for dark mode. I’ ll try with another browser then.
Thank you for this tip.

Just suspend the dark mode, you can switch on dark mode in freecodecamp from the settings, google chrome work splendidly - don’t change it!

For what it’s worth, FCC has a dark mode that you can choose on your Settings page. You could then disable your extension on FCC and continute using Chrome.

1 Like

The dark mode is disabled although this plugin maybe creates problems.

I use Mozilla (without plugins) now and it runs great :smiley: