Pls, help me out. (Use CSS Selectors to Style Elements)

pls, someone should help…After I followed the instructions. I changed the code this way but yet it turned error. its not changing to blue… i cant procede.

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

Check that in html section did you use h2 tag ?

i did but still not working

can your share me your Error or screen or even code …so i can help you above code is fine

What browser are you using?
What type of device are you using?
Can you please share your full code?

below are my full codes; @Gunjan, @ArielLeslie … am using Hp Laptop with Chrome Browser.

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

@femi1, it looks like you deleted the entire <h2> line along with the style attribute that was in that line. And you also deleted the <main> element.

Click on the Reset All Code button and start over.

OMG… Youre my saviour @Roma i shouldnt have deleted all the attributes. it asked me to delete just the style attribute. thanks. its ok now

1 Like

Good deal. Glad to help. Mark it as solved and continue your journey.
Happy coding!

1 Like