Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Describe your issue in detail here.

Your code so far
i am confused as which elements to use to turn the image into a link and also where to put them

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

Your browser information:

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

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

Link to the challenge:

surround your img element with an ‘a’ tag with the requested href.

so i should add at the start of the img tag <a and then href=" etc and at the end . how did u learn all this?

yes put your (a) with and href then img then closing (a) … Honestly I ask a lot of questions and I use w3schools.com a ton. Bookmark it :slight_smile:

Keep up the good work

And if someone leads you to the answer make sure you mark solution so they get points for helping :wink:

1 Like

it is hard. is w3schools.com the same as this site.

Add the closing a tag after the img tag so that you wrap up the img tag with a tag.

no its more of a reference site. You can find a ton of great information and examples on there.

if you are still stuck, show us what your current code looks like by responding here with your code inside a code block.

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