Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Im asked to turn the image into a clickable link, and i have done so. But then it says that i should only add one opening anchor (a) tag, and that i need remove any extras i get confused beacuse i have only added one where it says “<a heref=…” so if anyone knows what to do, please let me know.

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

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

Challenge: Learn HTML by Building a Cat Photo App - Step 15

Link to the challenge:

the anchor element needs a closing tag as well </a>
place it to the right of the img

I have now done so, but it just says the same as before " You should only add one opening anchor (a ) tag. Please remove any extras."

where did you place the closing anchor tag?
Please show the code.

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

Its for sure me who have misunderstood you, but its my first time working with HTML and codeing.

this whole thing is the ‘img’ which I was referring to.
So you should place the closing anchor to the right of this whole img element.

Sorry if its me who dont understand you, but my english is not that good.

But is it something like this you mean?

pls put the </a> at the end of the line
(after the last > for the img element)

That worked, thank you so much!!

1 Like

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