Learn HTML by Building a Cat Photo App - Step 9

Tell us what’s happening: i think i spelled everthing is right, but it is still shows i did sth wrong,

HTML: #9 A cat

<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 src="A cute orange cat lying on its back.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/120.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 9

Hello @huanhuanliu !
The text inside the alt region should be “A cute orange cat lying on its back”.
Happy coding!

You should also have the alt attribute inside the first image tag right after the src tag.
Then you get rid of the second img tag.

i tried again, it is still not right

Sorry, your code does not pass. Hang in there.

Your img element does not have an alt attribute. Check that there is a space after the opening tag’s name and/or there are spaces before all attribute names.
that’s how they said, i tried a lot of diffrent way, but it’s still stuck there.

ResetHelp

Try having a single img element with the format below
text

Mod edit: removed code

The src should be a link for the photo

how, could you please show me ?

This is the expected format

<img src=“Place the link for the photo hre” alt=“place the alt text here”/>

A cat

Try this
Mod edit: removed solution

thank you so much. i just got it

@ombasaanyona

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

@Cody_Biggs
I understand. I’ll provide hints and guidance instead of complete solutions to encourage learning.Thanks for your feedback!

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