Stuck with step 14

I can’t find the mistake, I’m trying to link the picture. It would be nice if you could find the mistake and describe what’s wrong with it.

Here’s the code:

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

You should first specify the link, followed by the image you want the link to contain. You did it the other way around.

More information on W3 Schools:
HTML Images (The section ‘Image as a link’ will be helpful!)

1 Like

"
I think a tag should be outside of img tag. try this.
I mean put the <img> tag inside the <a> tag

1 Like

Thank you, it works!