Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Turning the image into a link by surrounding it with necessary element tags. Use https://freecatphotoapp.com as the anchor’s href attribute value.
Your 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.">

ttps://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-by-building-a-cat-photo-app/step-15Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

Your ‘img’ element should be nested between an opening and closing anchor tag.

Im guessing its the “/>” at the end of your “img” giving it a closing anchor tag :thinking:

You ought to surround the image with an a tag with the href linking to https://freecatphotoapp.com

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