freeCodeCamp Challenge Guide: Add Images to your Website


You can add images to your website by using the img element, and point to an specific image’s URL using the src attribute.

An example of this would be

<img src="">

Note that in most cases, img elements are self-closing.


In adding an image to my code I’ve used the following code relaxing-cat please help me by telling me what i’m doing wrong. Thank you.


Hey, I had practically the same issue. It seems that after removing the single dash between words it was able to process the alt element properly. Give it a try!


I am stuck here, please help!! Here’s my code:



See it works here but not on my page: =/

img src=“” alt=“fcc-relaxing-cat”


this works fcc relaxing cat.


Hello Try this Out
Two cats lying down

Thanking You
Shawn Alexander


its not working guys


my code is
Author standing on a beach with two thumbs up.

but im stuck here…

Your image should have a src attribute that points to the kitten image.

how to pass this challenge?? plis who know??


Author standing on a beach with two thumbs up.


Thank you for your help! I don’t have any idea what coding is all about and I just started yesterday and to be honest I almost gave up and then I found you guys! Thanks again guys!!


It should be stated to add the code after your h2 line to work properly…


Can anyone tell me why my code isn’t working? I’ve been stuck here for hours.Cat laying on its back


This is the code, which I noticed only works if I delete the space between the alt line and the end of the img line but it still isn’t working. Cat laying on its back


Never mind, figured it out, lol. It wants the image on line 25, scroll all the way down.


Ladies and gents, any body figured this out yet? I am stuck here for hours now;

Thanks in advance for your guidance


Guys this worked for me.

Author standing on a beach with two thumbs up.


Make sure you are outside of the style section. I was stuck on this for awhile until I discovered that the images don’t process inside of style.


I figured this out guys. I’m super stoked. Power through it guys.


place the code at first