Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:

It says “Your img element should be nested within the anchor (a ) element. The entire img element should be inside the opening and closing tags of the anchor (a ) element.”

Your code so far

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

<!-- User Editable Region -->

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


<!-- User Editable Region -->

    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 15

1 Like

Hi there! Your code passes for me. Try to clean cache, cookies, disable browser extentions or use another browser

1 Like

Great work! There is an ‘href=’ in the upper ‘img’ tag. I do not think that it is suppose to be there. Happy coding!

1 Like

should you have two images? delete the first