Build a Cat Photo App - Step 9

Tell us what’s happening:

A cat why this code not working

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Everyone loves cute cats online!</p>

<!-- User Editable Region -->

   <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">

  <img src="cat.jpg" alt="A cat">
  

<!-- 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/137.0.0.0 Safari/537.36

Challenge Information:

Build a Cat Photo App - Step 9

Hi @sakibalhasan5400 !
Welcome to the forum!

I would suggest resetting the lesson.

You should only have one img element on the page. not two.

make sure to only update the existing img element they gave you here

 <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">

The instructions want you to add an alt attribute

Inside the img element, add an alt attribute with this text:

A cute orange cat lying on its back

Give that a try and if you need extra help let us know :+1:

2 Likes

i need help actually Can you tell me visually?
like everyone is telling, but still i am not getting it. kindly sister solve this for me by writing the solution. i would b very thankful to you

hi @rehmanromeeha please create your own topic

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.