Learn HTML by Building a Cat Photo App - Step 15

Hey everyone, my hint says to put the closing (a) tag behind the image, after doing so I’m still not passing. Can someone thoroughly explain how I need to correct in order to pass this level.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
        <a> <a href= "https://freecatphotoapp.com">cat photos</a> in our gallery.</p> 
          <a> <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" </a> alt="A cute orange cat lying on its back."> 
        </a>
    </main>
  </body>
</html>

Your mobile information:

iPhone - iOS17.6.1

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

Link to the challenge:

Welcome to the forum @reninalewis

Here is a comparison of the original code and your code.

The code in blue is the original code, the code in red is your code.
The code in magenta is the overlap.

  1. You appear to have altered the code in the p element.
  2. You placed a closing anchor tag inside the img element,
  3. The anchor element nesting the img element does not contain a href attribute.

Please reset the step to restore the original code and try again.
Do not alter code you are not asked to alter. Doing so may cause the tests to fail.

Happy coding

1 Like

Thank you, I’m still stuck on what I need to do after I’ve Reset the code back to original. Can you please tell me the correct coding so I can copy and paste.

Welcome to the community @reninalewis , it seems you have extra A tags, the A tag with the href attribute is already an opening A tag, you don’t need the extra < a > tags, hope this helps :slightly_smiling_face:

The forum is for guidance on how to solve these problems yourself. It’s not allowed to provide solution code for you to copy/paste because you would not learn anything.

This would also be against the academic honesty policy that you agree to on fCC.