Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:

I am struggling with the answer, and I would like to advance on my lesson

Your code so far

 <img <a href=" https://freecatphotoapp.com" src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."</a>
<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

     <img <a href=" https://freecatphotoapp.com" src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."</a>

<!-- User Editable Region -->

    </main>
  </body>
</html>

Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 15

With this you are trying to turn your link into an image and instead of turning your image into a link. Look back at your code and see how you turned the words cat photos into a link. Its the same thing, except this time you are turning the img into a link

thank you for replying back to this problem. I keep looking at the way I setup the other text into a link but I can’t seem to find the correct solution. Every time I change the anchor I seem to lose the image.

<a><img href=" https://freecatphotoapp.com" src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."</a

This is my newest code

This is how you turned text into a link the same thing should be done for the img

The href should be in the anchor tag not the img. You also have an incomplete closing img tag, and incomplete closing anchor tag