CSS project 2 Im unable to solve

the color isn’t changing of"CatPhotos"

Your code so far

<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>

  <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="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>

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.