Turn image into link

Step 14

Turn the image into a link by surrounding it with necessary element tags. Use https://freecatphotoapp.com as the anchor’s hrefattribute value.

How do I move forward? Please help this poor beginner

 My 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>
    <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>

You should put the <a in the image.
So, it would be <a ...><img ...></a>

2 Likes

thanksss!! You were really helpful

1 Like

Still don’t understand it at all!! definitely need a visual.