freeCodeCamp Challenge Guide: Add Images to your Website

freeCodeCamp Challenge Guide: Add Images to your Website
0

#1

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="www.your-image-source.com/your-image.jpg">

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


#2

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.


#3

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!


#4

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

fcc-relaxing-cat


#5

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

img src=“https://bit.ly/fcc-relaxing-cat” alt=“fcc-relaxing-cat”


#6

this works fcc relaxing cat.


#7

Hello Try this Out
Two cats lying down

Thanking You
Shawn Alexander


#8

its not working guys


#9

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??


#10

Author standing on a beach with two thumbs up.


#11

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!!


#12

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


#13

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


#14

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


#15

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


#16

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

Thanks in advance for your guidance


#17

Guys this worked for me.

Author standing on a beach with two thumbs up.


#18

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.


#19

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


#20

place the code at first