Needing help with this

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

‘‘Your image element’s
attribute should not be empty’’




      **Your code so far**
      
```html

<h2>CatPhotoApp</h2>
<main>

<img src=https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg
<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; CrOS x86_64 13904.97.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.167 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

Add one " before https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg and one " after https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg. Don’t forget the > closing tag.

1 Like

In addition to what stefan wrote, you are also missing the alt attribute.
The problem asks you to:
Finally, don’t forget to give your img element an alt attribute with applicable text.

And the error message you shared you were having said ‘‘Your image element’s
attribute should not be empty’’

1 Like

i can not seem to figure this out

If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It 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.

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"
<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; CrOS x86_64 13729.56.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.95 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.


You didn’t close this tag! Also, it needs an alt attribute.

1 Like

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