Cannot pass the test

Why I cannot pass it?

That link goes to the lesson without your code. Go back to the challenge and click the “Ask For Help” button and click the next button to post in the forum. That starts a post with your code so far. Then ask a question.

Not passing: Give your div element the class silver-background .
Do that.

Still not enough info. In the style section, create the class. It starts with a dot, right? Then, in the html section, put the class in the div like they did in the h2

For this challenge, you have to add a class called silver-background to the following div element:

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

Which will look like:

<div class="silver-background">

Then, you have to go back up to style and style the class you just created which will look like:

.silver-background {
    background-color: silver;

Hope this helps!

I passed. Thank you very much.

Thank you for helping me

Thank you for helping me.

1 Like

If after entering the correct code you are not able to pass the test then, try reloading the page again and start again you will do it by now.