CSS project 2 Im unable to solve

the color isn’t changing of"CatPhotos"

Your code so far


<style>  
h2{color:blue;}
</style>
<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="https://freecatphotoapp.com/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 browser information:

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

Challenge: Use CSS Selectors to Style Elements

Link to the challenge:

At some point you removed the inline styling of the h2 element <h2 style="color: red;">CatPhotoApp</h2> that is in the code by default.

If you want to keep your code in the new format (with all of the CSS in the between <style> elements you will need to readd a h2 element in the body of your HTML. Your declaration is correct in your CSS, but there is no h2 element in your HTML code.

1 Like

There is no h2 element.