Inserting img and alt image

hi all. The task is keep telling me to imput a src as you can see i have done this. There is no information on the alt so i presume we take a hint from the url so i just put the alt as a photo of a relaxing cat. ?

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<img src="https://cdn.freecodecamp.org/cat-photo-app/relaxing-cat.jpg"alt ="a relaxing cat photo">

<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.54 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

hi all. The task is keep telling me to imput a src as you can see i have done this.

Yes, but it isn’t exactly the src that you were told to use. When I fix this, the code passes for me.

There is no information on the alt so i presume we take a hint from the url so i just put the alt as a photo of a relaxing cat. ?

Sure, it’s just checking that you have something there. What you have makes sense. Some people might argue that you don’t need to label it as a “photo” since that is inferable from context, but you wouldn’t be the first.

The issue is that you didn’t use the requested src.

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