Learn HTML by Building a Cat Photo App - Step 9

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

Please can someone help on this Step 9

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more cat photos in our gallery.</p>

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">
      <alt ="A cute orange cat lying on its back">

<!-- User Editable Region -->

    </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/112.0.0.0 Safari/537.36

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

Link to the challenge:

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

Thank for your reply, I tried to put space between the <img and the alt and then alt attribute with the cat in the sentence with quotation mark. but is not working.

Your alt needs to go inside the img element, but right now you have it on the outside. You can read more about it here, and see some examples of where it needs to go

Tell us what’s happening:
Describe your issue in detail here.

Your code so far
A cute “lying on its back”>
Above is how I do it still not work, I need help please.

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more cat photos in our gallery.</p>

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">
      <img alt ="A cute" alt="orange cat"> "lying on its back">

<!-- User Editable Region -->

    </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/112.0.0.0 Safari/537.36

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

Link to the challenge:

You need to add an alt to the existing img the challenge gives you. You can read and see here how it is set up

1 Like

Your alt should be inside the image tag.
This is the structure.

<img src="" alt="">

<img src="cat.jpg"alt=“A cute orange cat lying on its back”>

Thanks for your help, I really appreciated your help. My work is above but still don’t get it.

The only thing you should be doing to the img is adding the alt attribute. You should not have changed the src for the img. I recommend resetting the lesson, and the only thing you need to do is add the alt to the img

You have given me fantastic information , I got it now. Thanks a lot.

Thanks a lot I appreciated your information

1 Like

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