Your h2 element should be blue on this code

Tell us what’s happening:

Your code so far

{color: blue;}
  <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="/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 (Linux; Android 6.0; Infinix_X521 Build/MRA58K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.109 Mobile Safari/537.36.

Link to the challenge:

You don’t have an h2 element. It says delete your h2 element’s style attribute and add this:

  h2 {color: blue;}

Not delete your h2 element.

I have tried this option but it didn’t work

Can you show me where you put this code in?

h2 { color: blue;}


It’s asking you to remove the inline styling of the html element and control It’s style with css.

you have removed the entire h2 tag, you only have to remove inline styling which you have given in your h2 tag

Your suggestions were helpful @naveen_coder And @Zachariahc. Thanks

1 Like