Add Images to your website page

Tell us what’s happening:
Hi, my problem is that it keeps telling me that “my image element Alt attribute should not be empty” can anyone pls help me with this one?

Your code so far

<img src=
<img src="">
<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>
<img src="" alt="fcc-relaxing-cat">

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:


All img tags need an alt attribute. This is a place to put descriptive text in case the image doesn’t display, or for screen readers to read. If you have an image that doesn’t require alt text (such as decorative image), you can leave it empty with quotes (alt="").

<img src="http://......." alt="cat relaxing in the sun">

Also, don’t forget to include a closing angle bracket on your first img tag there.

Hope that helps!


Thanks Mrs. Mackness but i have been literally trying it the whole night, it keeps pulling me down on that “alt” part…

it is checking the first img element it finds

I suggest you make sure to have one single img element, maybe keep the one that seems more correct, and try again

also, your first img is missing the closing >

1 Like

So far it looks like this Mrs. Ieahleen

Is there anyone whom can offer his/her patience for me?

You have three img elements. You only need one. The first one has the correct src attribute but no alt attribute and that’s the only one the tests are seeing.
You can either reset the lesson by clicking the ‘reset all code’ button or just deleted the other two img elements and add some alt text to the first one.

1 Like

Than came the Super Hero after day’s of struggling…

I have pulled it off, thank you for your help Roma!