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>CatPhotoApp</h2>

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

<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="/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>
// 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:
https://www.freecodecamp.org/learn/responsive-web-design/basic-css/change-the-color-of-text

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.

markdown_Forums

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