CSS Lesson#2 regarding a blue h2 element

Tell us what’s happening:
The Cat Photo App has blue lettering and I don’t use an outside editor for copy and pasting purposes. For the life of I don’t know what I’m doing wrong. The only thing I need to complete this lesson is to turn the h2 element blue; however, from what I’m seeing, I’ve done that. What am I doing wrong?

Your code so far


<style>
h2 {color: blue;}
</style>

<h2>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="https://freecatphotoapp.com/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 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36.

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

I was able to pass the lesson with your code fine.
Try refreshing your page if needed.

If this doesn’t work, try switching to Chrome (as I am aware some bugs exists on Safari).
Hope this helps :slight_smile:

For some reason the code isn’t working on my end. I switched to Chrome and tried again and the result is the same. Is there some really small detail I’m not seeing? I’ve literally looked and done a letter-by-letter copy. I’ve watched the video, done dual screen to where I could see the code and copy it over to my challenge… I’m stumped. I don’t know what I’m doing wrong.

My dark-mode extension on Firefox was interfering with freeCodeCamp. Once I whitelisted the site, I was able to complete the lesson.

Try it out!

2 Likes