Why is it showing "Your Style declaration should end with a ';' "

Tell us what’s happening:

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-css/change-the-color-of-text

It clearly has a semicolon. So as it’s the only thing I can see wrong, I’m assuming that the test is getting confused and failing because the colour is misspelled (you [generally] cannot just randomly use capitalised versions of words when using programming languages). On a phone so a cannot confirm this is the reason though

Don’t randomly use capitalised versions of words.

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

Use this instead :

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

The current test is silly. It has already been updated, but the site has not been updated yet (PR).

1 Like

is it fixed ? im also stucked at here

What is your code? Are you sure you are not using capital letters?

yeah , i.m sure. But i tried copy it then type it again and it works