Use CSS Selectors to Style Elements "Your h2 element should be blue."

Use CSS Selectors to Style Elements "Your h2 element should be blue."


Tell us what’s happening:
I am on “Basic CSS: Use CSS Selectors to Style Elements”
I am being asked to turn text within the h2 element to blue.
I have googled the issue.
I even copied and pasted code that others said will work.

I still am getting the response…

// running test
Your h2 element should be blue.
// tests completed

It is blue…

Please help.

I do not understand what I am doing wrong.

Your code so far

  h2 {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 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36.

Link to the challenge:


Where is the h2 tag in your html markup?


I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

Note: Backticks are not single quotes.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.


you should be mentioning a h2 tag after the styling
i.e., your code should be something like this:

h2 {color:blue;}

Cat Photo App


you can see the h2 being mentioned after style tag in the part