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
    <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.">

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


thanksss!! You were really helpful

1 Like

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

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.