Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:

Describe your issue in detail here.
It keeps telling me that i am not closing the ‘a’ anchor element properly though i have placed this closing in literally every single space. I keep going back and resetting the challenge in case i might of accidently changed anything and still don’t understand what exactly im being asked anymore. Now it says i need to wrap this ‘img’ element in a link so that clicking on the photo will send you through the link and the source of the photo though as the process is called “wrap” i am imagining that the anchor needs to be “around” the ‘img’ tag yes? otherwise its not a wrap, right? So im trying to get the link to close around the ‘img’ tag but the ‘a’ never closes no matter how i put it at the end of the ‘img’ tag. I have tried just wrapping the ‘src’ as well as some other off the wall ideas i had though as a beginner trying to learn theres only so far i can bounce ideas around until they are a complete waste of time, so im here now needing a hint or two because i dont get it anymore.

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

<!-- 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 Edg/

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 15

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!

It appears the closing > is missing here.

I hope this helps you.

1 Like

Thats actually the issue, the image it has up is only one of the ways ive tried it but i can show you that when i do close that off correctly the challenge still wont let me pass. I will try and show you

I am attempting to find the issue. Because even with closing it and adding the anchor closing tag, it is doing exactly as you stated in your problem.

1 Like

I can see somebody with more experience is jumping in to help. That is great!
My vision is missing something.

Happy coding!

1 Like

ok thanks for trying to help


Hey all,

There are a few issues here.

  1. The attributes in HTML should all be formatted as attribute=value or attribute="value" and never attribute:value.
  2. There is a missing > as @Gray.n.Grey said at the end of the starting anchor tag: <a href="https://freecatphotoapp.com"> (note I also changed the : to an = sign)
  3. The anchor tag is missing an ending </a> after the image. Remember, you open and close anchor tags (and most other tags). You put whatever you want to be linked inside of the anchor tags and then close it.
1 Like

Thank You! I will go back and use this and will mark this comment as the solution after i make sure i follow your advice accordingly. Thank you again.

1 Like

Thank you very much! Forgetting the ‘>’ for the closing and the ‘img’ tag ending with ‘>’ also confused me as i would delete it and try to replace it with ‘/a>’. I understand now that this ‘>’ ended the ‘img’ tag and then adding ‘’ then closed the ‘wrap’ around the ‘img’ tag. Thank you so much!

1 Like

My pleasure! I’m going to close this topic now, as well. But please feel free to reach out to the forums again if you have questions going forward.

Happy Coding!