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
<!-- 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 -->
<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/184.108.40.206 Safari/537.36 Edg/220.127.116.11
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.
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.
I can see somebody with more experience is jumping in to help. That is great!
My vision is missing something.
ok thanks for trying to help
There are a few issues here.
- The attributes in HTML should all be formatted as
attribute="value" and never
- 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)
- 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.
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.
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!
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.