I’m new to coding and I’m trying to learn. However, been stuck at this lesson for like an hour. I don’t understand what I’m doing wrong. I’m trying to make the picture of the cat a link, but I’m not sure exactly where I should put in the anchor. The error I’m getting is
" You should only add one opening anchor (
a) tag. Please remove any extras."
Which extras should I remove? I’d appreciate any help.
Your code so far
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
<a href="https://freecatphotoapp.com"</a> <img 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 10.0; Win64; x64; rv:107.0) Gecko/20100101 Firefox/107.0
Challenge: Learn HTML by Building a Cat Photo App - Step 15
Link to the challenge:
your anchor’s opening tag has no
> . Again you have not wrapped anything within your anchor element. Wrap the image
You are missing a
> before the closing
</a> tag. Also move the closing
tag after the` tag so that you nest the img tag inside the anchor tag.
I really appreciate the advice. However, I still cannot pass this lesson. There is still something wrong with the code. It now looks like this
type or paste code here
<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."><a/>
Check your closing anchor tag. This is how we close a tag
Ah, many thanks. Found the error. Now I finally was able to pass the lesson.
I appreciate how easy it is to get help here. Again, thank you so much.
I am stuck at the same step. I copy pasted the resolved code but still not able to pass. Can someone help please
Hey please click on the get help button on the challenge and ask your questions.
Thank you! I was finally able to pass it through step 23
your anchor’s opening tag is missing “>” and also you should have anchor’s closing tag after the closing of “img” element