Change the Color of Text to red

Change the Color of Text to red
0
#1

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>
<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 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36.

1 Like
#2

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

1 Like
#3

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.

2 Likes
#4

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
#5

Νο, I m using chrome!

#6

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

#7

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

#8

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
#9

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

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