Learn HTML by Building a Cat Photo App - Step 15

<img src=“https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg” <a href=“https://freecatphotoapp.com” target=“_blank” alt=“A cute orange cat lying on its back”

This is the line of code that I’ve done so far. Im not sure if the anchor is in the right position and whenever I put it in front of the img element it says “only one opening tag allowed please remove others”

Then where I have it now, it says “Your anchor (a ) element should have an opening tag. Opening tags have this syntax: `” .

I’m so lost what do I do?

Welcome to our community!
Read carefully the instruction: “Turn the image into a link by surrounding it with necessary element tags.”

<a href="URL"><img src="URL" alt="text"></a>

I tried that arrangement as well but it still isn’t accepting it. It keeps saying only one opening tag allowed

check your work carefully. Each tag must start with a < and end with a >
If you are still stuck, post your new code in reply here.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.