Please help with css style selectors challenge

Tell us what’s happening:

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="">
  <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 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Edg/88.0.705.63.

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

In general you should ask a question so we know what you need help with.

There are two things to do for this challenge:

  • Delete your h2 element’s style attribute: You have not done that.
  • Add the necessary CSS to turn all h2 elements blue using a <style> block: You have not done that.

Give that a try and then you can write back if you get stuck.


Hi @gregory.smith1392 !

Welcome to the forum!

I have edited the title of you post to remove the link.
Try to avoid placing links in the title because we can’t click on them.

As mentioned earlier, when making a post please try to explain what you are having issues with.

From what we can see, you created an inline style but that is not what the instructions ask for.

I would look back to the example provided for you in the lesson on how to create a style block.

Hope that helps!