Learn HTML by Building a Cat Photo App - Step 15

Hello. I’ve been stuck on this step for a while, it keeps saying I’m missing a closing tag but when I add it after the alt element, it says the img shouldn’t have any opening or closing tags except the anchor elements

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

<!-- 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 (iPhone; CPU iPhone OS 16_3 like Mac OS X) AppleWebKit/605.1.15 ([date=2023-08-02 timezone=“Africa/Lagos”]KHTML, like Gecko) Version/16.3 Mobile/15E148 Safari/604.1

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

Link to the challenge:

Welcome to our community!

To turn an image into a link you should follow the rule:

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

This is guidance.

In your code, you have the same img element in question twice:

1 Like

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