I am unable to understand what is wrong with my code here this is the message that i "Your image should have a src attribute that points to the kitten image."

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<img src="https://bit.ly/fcc-relaxing-cat" alt="A business cat wearing a necktie.">

<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>
  **Your browser information:**

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

Challenge: Add Images to Your Website

Link to the challenge:

Hi,

In your code you have given a link to the image.
Your src attribute should use the link provided not the link you have used.

it is showing me the same error with the code given. That’s why i used a different code.

the code given to mee is

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="freeCodeCamp logo">

it was suppose to show a cat photo but it doesn’t show any pics of cat .

Have you completed the challenge?

no i can’t complete the challenge

the code given to me is-

<img src="https://ww.freecatphotoapp.co/your-image.jpg" alt="freeCodeCamp logo">

i have removed a “w” and “m” to only show you the code.

The link you have used in the src attribute is wrong .

You should use this link instead:

https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

You should be able to pass the challenge using this link.

1 Like

Thank you
I have now completed the challenge.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.