Learn HTML by Building a Cat Photo App - Step 22

Tell us what’s happening:

Describe your issue in detail here.
I’m having problem in solving step 22

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

img scr="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg"alt="A slice of lasagna on a plate."<ul>
          <li>cat nip</li>
          <li>laser pointers</li>
          <li>lasagna</li>
        </ul><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/122.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 22

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!

1 Like

I actually edited it but it’s not working

Hello!
Try explaining your problem as it helps you learn.
You have added an img in the top and in the bottom. Reset your code.
Then in the bottom, after your ul closing tag add an img element with an src attribute with the value set to https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg and an alt attribute set to A slice of lasagna on a plate.

1 Like

I did but it keep saying that " The new image does not have an

src

attribute. Check that there is a space after the opening tag’s name and/or there are spaces before all attribute names. The new image should have an

src

value of

https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg

. Make sure the

src

attribute’s value is surrounded with quotation marks."

  • cat nip
  • laser pointers
  • lasagna
A slice of lasagna on a plate. I have done this but it's still not working

Please paste your updated code here.
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

Not sure if you managed to figure it out but, the img element is supposed to be after the unordered list and you also have the wrong spelling for your “src” attribute is it should be “src” not “scr”. I also make the same spelling mistake and learned from my mistake to really double check spelling and spaces. good luck!

1 Like