How to add image

Tell us what’s happening:
i am not able to add img as it says your img should have src attribute. how to fix it

Your code so far


<h2>CatPhotoApp</h2>
<main>


<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. <img src="https://pixabay.com/photos/cat-sweet-kitty-animals-feline-323232-image.jpg" alt="Cute Cat"></p>
</main>

Your browser information:

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

Challenge: Add Images to Your Website

Link to the challenge:

In order to help you fix your code, we would have to see it. What did you try?

Hi RKaur,

I tried your " src " address below directly in my browser. The host site cannot find the file from the URL supplied. This may be the reason for the error. Try a different URL.

Regards Martin

1 Like

use the url given to you in the challenge instructions. If you don’t use that one, you will never pass the challenge

2 Likes