IMG SRC Attritube

I’m receiving the message that my image should have a src attribute. I’ve inputted that attribute as it is displayed in the example. I did this one yesterday but reset all of the code to start over. I’m not sure if I did anything different but I was able to move on to the next lesson. Am I missing something here?

Thanks,
Tj

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

<img src="https://wwwcdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="Relaxing Cat">

<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/100.0.4896.143 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

Hello and welcome to the forum!

Does this URL match what the instructions ask you to use?

2 Likes

the url of the src attribute seems not to be correct

1 Like

I visited the project link now and i saw that the url you used is not correct:

Now set the src attribute so that it points to the url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

Finally, don't forget to give your img element an alt attribute with applicable text.
1 Like

What you typed:
Relaxing Cat

What you should have typed:
<img src=“https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg” alt=“Relaxing Cat”

You typed “wwwdcn” instead of just “cdn” in the beginning of the url. That was the problem

1 Like

Thank you and I’m sorry for the late response. I figured it out yesterday as soon as I returned to the lesson. I was at work and got sidetracked.