Build a Cat Photo App - Step 24

Tell us what’s happening:

Hey guys please I need help here
I’m trying to pass this level but they’re telling me that the new image does not have an alt attribute. Even when theres an alt attribute so I don’t know what to do right now

Your code so far

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

<!-- User Editable Region -->

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

<!-- User Editable Region -->

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

Your browser information:

User Agent is: Mozilla/5.0 (iPhone; CPU iPhone OS 18_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.1.1 Mobile/15E148 Safari/604.1

Challenge Information:

Build a Cat Photo App - Step 24

The workshop asks you to:

After the unordered list, add a new image(…)

Where is you <img> element currently?

1 Like

Thanks I’ve figured it out all I was supposed to do was close my unlisted element before proceeding to start creating an image can’t believe I spent 4hours on it :man_facepalming:

Have you rewrote your list elements too?
Normally you don´t have to change any part of the list.
The step only wanted you to create an element.

If you face a very messy code and you have really no idea anymore how to fix what you wrote, you can use the Reset button anytime. As a last resort of course.

1 Like

But if I reset it I’ll have to start the test from the beginning and I’m almost done with it.

No, you don´t have to here.
I meant it as a last step to take, when nothing wants to work, since you wrote you spend 4 hours on this step. Reset button only resets the actual step, not the whole workshop, you don´t have to start it all over again.

Or are you talking about the whole workshop or just step 24?

no, resetting only resets this specific step, not the whole workshop, it’s really useful if you have made too many changes

1 Like