Your Image's alt attribute should not be empty (Cat Image)

Can’t get past adding the cat image. When the test fails it states that the alt attribute should not be empty.

<main>
<image src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A kitten lying on its back.">
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
  <p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

Thanks for the heads up about the backtick !

It would be best if we had the actual code here. You can paste it in by wrapping it in triple backticks:

  • On a line of its own, type three backticks (usually in the upper left corner of the keyboard).
  • Below this line paste your code
  • On a line of its own below your code type three more backticks and then return/enter

Alternatively, if you click the ‘Get Help’ button, and then ‘Ask for Help’, it will put your code in the message for you. But don’t do that now, as it will create a duplicate thread.

There is no <image> element. What do the instructions use for images?

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">
```

This is the format described in the instructions.

Appreciate the reply bbsmooth…format should have been img rather than image.

Thanks again for looking at my question !!!

1 Like

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