Learn HTML by Building a Cat Photo App - Step 24

Tell us what’s happening:
Describe your issue in detail here.
My latest problem is on 24, and my code im having issue with is this line:
Your code so far< alt = “a slice of lasagna on a plate.”>, and I cannot find where I need to have the alt, and ive tried for about an hour and a half trying to get it so thank you for reading!

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>
        <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>
        <ul>
          <li>catnip</li>
          <li>laser pointers</li>
          <li>lasagna</li>
        </ul>
        <img scr= "https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg">< alt = "a slice of lasagna on a plate."></a>
      </section>
    </main>
  </body>
</html>

Your mobile information:

SM-S901U - Android 14 - Android SDK 34

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

Link to the challenge:

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

alt goes within the img element.

Double check the syntax for both. Do an Internet search to check the syntax if you need to.

Maybe you have another img element earlier in your code that you can use to compare.

1 Like