Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:

Describe your issue in detail here.
i have problem converting an image into link

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

  <a herf="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."></a>

<!-- User Editable Region -->


Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 15

1 Like

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Welcome to the community @iobateru !

Thank you for posting the problem, along with the code.

To complete this task, we need to place the opening anchor tag, with its href attribute and it value ‘url provided in directions’ before the opening angle bracket of the img.
We place the closing anchor tag after the closing angle bracket for the img.

Use the above quote from your previous code as a reference on how to surround the img to make it into a link.

Do not include the target attribute, nor its value “blank” in the anchor for the img.

I hope this helps you move on.

Happy coding!

1 Like