What is wrong in this

Tell us what’s happening:

Your code so far

<h2 style="colour: red;">CatPhotoApp</h2>
<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>

  <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="https://freecatphotoapp.com/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>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.135 Safari/537.36.

Challenge: Change the Color of Text

Link to the challenge:

hey… in ur code please type COLOR instead of colour in h2 tag…


1 Like

i tried this but it didn"t work

did you type <h2 style=“color: red;” ???

1 Like

If you tried with <h2 style="color: red;">CatPhotoApp</h2>, as krushi_vankdoth said before, maybe it is a browser issue?.
If I copy and paste your code, with only that changed, all tests pass.

1 Like

Change colour to color and try it in another browser. It should work just fine.

This surely works. check again

<h2 style="color:red;">CatPhotoApp</h2>  <!-- it works -->