I don't know what is wrong

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <section>
      <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."></a>
    </section>
    <section>
      <h2>Cat Lists</h2>
      <h3>Things cats love:</h3>
      <ul>p
        <li>cat nip</li>
        <li>laser pointers</li>
        <li>lasagna</li>
      </ul>
  <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg">alt
A slice of lasagna on a plate.
    </section>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 11; Infinix PR652B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.210 Mobile Safari/537.36

Challenge: Step 21

Link to the challenge:

What seems to be the issue? Any questions? Error messages? Things you don’t understand? The more info you give the better we can help :slightly_smiling_face:

Take a look at your alt. alt is an attribute and should therefor be part of the image tag.

Im at the same step and I keep getting “There should be an img element right after the closing </ul> tag.” message? what should i do?

The “alt” attribute is part of the “img” element. So it needs to be inside the brackets

Eg

“…”

1 Like

i added alt inside the img element, I was stuck in this one and finally got it! Thank u!

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