Learn HTML by Building a Cat Photo App - Step 15

im not sure what is wrong here. the challenge is to turn the picture into a link ive done that but it keeps telling me the code is incorrect

  **Your code so far**
<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>

   <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.">
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

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

Link to the challenge:

i do not see your anchor closing tag?

i had one on there before but in trying to pass it i was taking things away. it still gives me the same message with the closing tag

CatPhotoApp

Cat Photos

Click here to view more cat photos.

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

oops, that’s not correct.

Your older try was better.
A closing tag looks like this:
</a> and it should go after the img.

i really appreciate your help. i actually feel like reading on this website and having to research instead of watching a video is helping me learn better than other sites.

plus there is a great community of people who just want to help others here.

1 Like