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
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<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 -->
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0
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!
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
The attributes in HTML should all be formatted as attribute=value or attribute="value" and never attribute:value.
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 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!