Learn HTML by Building a Cat Photo App - Step 9

I’m struggling to figure out what i’ve done wrong here.

This is the alert i’m getting

Your img element’s alt attribute value is set to something other than ‘A cute orange cat lying on its back’. Make sure the alt attribute’s value is surrounded with quotation marks.

<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>
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="">

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

Any ideas? Thanks

Hello!

You should only have one img but I see two in the code.

Happy coding!

If this helps you, please remember to check Solution by @jyothsnal6333

2 Likes

Perfect thank you! I’ve edited the line above and it worked :slight_smile:

2 Likes