Build a Cat Photo App - Step 31

Tell us what’s happening:

I got stuck in step 31 her is the code so far have done

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>
        <ul>
          <li>catnip</li>
          <li>laser pointers</li>
          <li>lasagna</li>
        </ul>
        <figure>
          <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
          <figcaption>Cats <em>love</em> lasagna.</figcaption>  
        </figure>
        <h3>Top 3 things cats hate:</h3>
        <ol>
          <li>flea treatment</li>
          <li>thunder</li>
          <li>other cats</li>
        </ol>

<!-- User Editable Region -->

        <figure>
          <imgsrc="https://cdn.freecodecamp.org/curricullum/cat-photo-app/cats.jpg">
        </figure>

<!-- User Editable Region -->

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36

Challenge Information:

Build a Cat Photo App - Step 31

Please talk about how you are stuck figuring out what is wrong.

Add space in “imgsrc” => “img src”

In the second figure element the instruction have instructed to nest the img element with src attribute to set into the link given.

Ok. And how are you stuck with those instructions?

I have done as the way I have been instructed I don’t know where I am getting it wrong to get an error

This doesn’t appear to be the way you were instructed to add an attribute.

It doesn’t match what you did here.

1 Like

Hey Buddy apart from following the advice of @JeremyLT here you also need to check your this part of link address too.

To avoid any mistake you can directly copy-paste link address

Hope You Understand.

1 Like