Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
I really don’t know where to put the anchor and href because it either says that I may have accidentally deleted something, or that i just put it in the wrong spot. I might just be missing something dumb, but I really just don’t understand what I’m doing wrong.

Your code so far

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

<!-- User Editable Region -->

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 15

Link to the challenge:

You can’t put an element inside of a tag for another element. That won’t work.

I would reset the code and make zero changes to the img element.

You need anchor tags before and after the img element like you did with the text ‘cat photos’.

Ok I’ll try that, thanks!

I’ve tried to put the anchor tags around the “img” element but it says that I may have accidentally deleted it.

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

This is not a complete opening anchor tag.

In your previous steps you learn how to used an anchor element to turn text into a link right? Yes.

In the same approach turn your “img” into link.
Reset your code and try this.
Use this rule:

<a href="something"><img></a>