Need assistance in Use CSS Selectors to Style Elements. Code is correct but it won't pass

Challenge Name

Use CSS Selectors to Style Elements has an issue.

Issue Description

Browser Information

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:54.0) Gecko/20100101 Firefox/54.0.

Screenshot

Your Code



<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="/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 closing </h2> tag is missing the >.

Though it’s weird that it passed when I tried your code.

yeah I tried doing the challenge again and the second time I left out the closing tag. I just tried it again and got the same results:

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

it still says the h2 tag should be blue, which it is. Note: the code is properly indented in the challenge. i don’t know how to do it in the forum.

Update: Everything works fine in chrome