Learn HTML by Building a Cat Photo App - Step 15

am trying to solve the problem but for some reason i cant
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 <a href="https://freecatphotoapp.com" 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 6.1; WOW64) 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:

You must understand what it means to turn an element into a link.

The general structure of the code you are going for is:

<a href=“url”><img src=“url”></a>

The img element is given to you already in the code.
So all you have to do is create the anchor element around it as per the structure above.

1 Like

thanks mate
all settled

1 Like

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