I have the code right. It even shows silver background on the displayed page frame. But test says my div element should have silver background class, when it clearly does. How can I get past this error? Help!

  **Your code so far**

.silver-background {background-color: silver;}


  <div class="silver-background">
  <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="">
  <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_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15

Challenge: Give a Background Color to a div Element

Link to the challenge:

Hi @davidrussell761 !

Welcome to the forum!

Did you delete some code?

The starter code looks really different from your code now.

Try reseting the lesson and only add to the style tags and the class of silver-background to the div.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.