Learn HTML by Building a Cat Photo App - Step 22

**Tell us what’s happening:**h
Describe your issue in detail here.
how do i add an img elemrnt after closing
Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <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>
        <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>
      </section>
      <section>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>

<!-- User Editable Region -->

        <ul>
          <li>cat nip</li><img src="https://cdn.freecoadcamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="a slice of lasagna on a plate."></li>
          <li>laser pointers</li><img src="https://cdn.freecoadcamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="a slice of lasagna on a plate."></li>
          <li>lasagna</li><img src="https://cdn.freecoadcamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="a slice of lasagna on a plate."></li>
        </ul><img ></img >

<!-- User Editable Region -->

      </section>
    </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/111.0.0.0 Safari/537.36 Edg/111.0.1661.44

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

Link to the challenge:

Well, you added the image tag, but you didn’t put anything in it. Also, you don’t need to close an image tag, so the </img > isn’t required.

As the instructions say, your img tag needs to have the appropriate src set, as well as the alt. If you’re not sure what that should look like, if you look further up in the code you’d already written, you can use the other image you have on the page as an example of what it should look like.

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