Learn HTML by Building a Cat Photo App - Step 22

Tell us what’s happening:
Describe your issue in detail here.
Hi! I tried many times to insert the image and it keeps telling me There should be an img element right after the closing </ul> tag. I can´t find my mistake, please help.

Your code so far

        <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>
        <h2>Cat Lists</h2>

<!-- User Editable Region -->

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

<!-- User Editable Region -->


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

try a space between attributes
your src=“” is bumpting up against the alt=“”

src=““alt=”” this is what I see in your code, src=“” alt=“” might solve the problem

I tried that already and just now I tried it again but it repeats the same error. :frowning:

Your code is OK. Try the following:
“Note: Some browser extensions, such as ad-blockers and dark mode extensions can interfere with the tests. If you face issues, we recommend disabling extensions that modify the content or layout of pages, while taking the course.”

I already uninstalled all the extensions and nothing has changed, I cant figure out the problem

I just copied and pasted your code into the answer, but it also did not pass for me?
you did miss a full stop after the word plate in the alt however I believe your also missing an end tag to your < h3 > element

only after adding these could I get it to pass

1 Like

I recogmmend restarting the step, to clean up the code

omg THANK YOU i did it!! I think the problem was the end tag for the h3 element. Thank you so much<3

1 Like

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