Src error that ive tried to fix but wont

it keeps telling me that it needs an src attribute and i’m new. i dont understand this. i’ve used different images but i just can seem to get 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.</p>

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">

</main>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

Hello @dgrumbach06,

You meet an issue related to the url you are using in your src attribute.
Yours is the one from the example: https://www.freecatphotoapp.com/your-image.jpg

You should use the one they ask you to use for that challenge: https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

Challenge exercice:
Let’s try to add an image to our website:

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

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.

3 Likes

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