'Your h2 element should be blue' but it is!

Tell us what’s happening:

I keep getting the error message

‘Your h2 element should be blue.’

All the other criteria have been met.

Sorry for such a basic question but I have looked over this 100 times and keep getting the same error despite the text in the preview window clearly being blue.

Your code so far

h2 { color:blue;}
<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>

  <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 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0.

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

1 Like

you should do it h2 {
color: blue;
} a space after two dots

Welcome, james.

Your code passes for me. I suggest you do either of the following:

  1. Disable all extensions that have access to freeCodeCamp.
  2. Use a different browser. The recommended is the latest stable release of Chrome.

Hope this helps

that can be a solution tho ,

Thanks but I tried that.

Thanks for the validation! Glad to know I’m not going crazy.

I had a similar hunch. I was on Firefox then switched to Chrome and everything’s been working great.

Thanks again.