Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
I don’t understand what I’m doing wrong can someone help and explain please!?

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- 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" ><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15

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

Link to the challenge:

Hi!
HTML elements need an opening and closing tag. Where is your anchor elements closing tag?

would the closing tags be ? because I keep trying that and it still won’t work

The anchor closing tag is this one </a>

I tried that it says I should only have 1 opening anchor and Im just so confused

there’s probably something else wrong.
But that doesn’t mean you don’t need the closing tag.
Make sure the closing anchor tag is on the right hand side of the img element

and if you are still stuck then please post the latest code

1 Like

Tell us what’s happening:
what am I dong wrong?
Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- 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.">
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Safari/605.1.15

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

Link to the challenge:

hi there,

the closing tag should be on the -right side- of the img element

<a href="something"><img src="something"></a>

Please do not create a duplicate topic for the same challenge in future. I have merged your duplicate into the original topic.

1 Like

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