Basic css change the color of text

I am having the same problem of many of you, as I searched about. My code is correct, I already tried to copy and paste the answer but nothing seams to be working. As of my browser, I use chrome; I deactivated my extensions too. I refreshed my browser a gazillion times and always the same error message. Can anyone help me because i am dying here…


<h2 style="color: red;">CatPhotoApp</h2>


  <p>Click here to view more <a href="#">cat photos</a>.</p>

  <a href="#"><img src="" 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="/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>


// running tests
Your h2 element should have a style declaration.
Your h2 element should have color set to red.
Your style declaration should end with a ; .
// tests completed

Hi! May I see the link of this challenge? Thank you :slightly_smiling_face:

1 Like

Hey @decoder20,

  • Can you link the challenge here. Next time if you need a help from a challenge, you can use the Get Help button on the sidebar.
1 Like

here you have it :slightly_smiling_face:

I ll do that, thank you

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

Please use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks are not single quotes.


1 Like

anyway, your code seems to be correct, sometimes the challenges have issues, or you have changed some slightly thing somewhere else and everything is not working

you can move on and go to the next challenge anyway (challenges are not a prerequisite for certification, are just there to help you learn)

1 Like

Even I was having the same problem!
Try running the code in another browser!!
hope it works!

1 Like

Everyone has their own way to do the tasks and have different opinions but in my opinion you should always keep your CSS file separate or keep it out of the main body. In this way, it will be more professional work instead of all this mess in the body.