How do I add image to my website pls

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>

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

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.41 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.


Two image tags is confusing the tests.

I am trying to add image to my website. I am stuck on adding img element to my alt attribute

That’s not a great description of the problem. It doesn’t really help me help you. What error messages are you seeing. How have you tried to fix these messages?


Like I said above, you shouldn’t have two image elements.

This is the error message I’m getting " Your image element’s alt attribute should not be empty"

Again… You shouldn’t have two image elements. Have you tried deleting one of them?

Thanks for helping.
I just deleted one of them

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