How to add kitten image to my src

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<img src="https://www.pointstothekittenimage.com" alt="Cute kitten smilling"> 


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

Challenge: Add Images to Your Website

Link to the challenge:

Hi @jaiyeobaobiageli,

Your image doesn’t have the good value for the src property. The exercice asks you three things. The first one is:

Within the existing main element, insert an img element before the existing p elements.

This one is done. Second one is:

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

This one is the one you don’t do good. Compare your URL and the one from the exercice. Third thing to do:

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

This is respected to into your code. For the challenges, it is essential to watch what the exercice asks, especially the properties/values, in respecting the case. Hope it helps!

1 Like

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