Solving the Kitten Image

Newbie here. Can anyone please point me in the right direction to solve this?

CatPhotoApp

img src=“https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg” alt=“relaxing cat photo”

Hi @meyoung7,

Could you share with us the link of the challenge to see what they ask you to do?

Hopefully, this is what you need. They are asking me to do the below.

Let’s try to add an image to our website:

Within the existing main element, insert an img element before the existing p elements.

Now set the src attribute so that it points to the url https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg

Finally, don’t forget to give your img element an alt attribute with applicable text.

1 Like

Could you give the link and the code you did? You can use the </> (performed text) to write your code.

or this is the link that I created.

img src=“https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg” alt=“relaxing cat photo”

OMG!! Now I get what you are saying. The lightbulb just went off! attention to details! I have been on this for about an hour and a half, but Thank you Thank you!!

1 Like

Thank you. I can see that you put the image after the main tag, and then after the p tag.

Within the existing main element, insert an img element before the existing p elements.

The other thing are respected. And know that on my side your code passes even without the first rule not respected so just try to do this and see what happen.

1 Like

You have been on what during one hour I didn’t get it sorry, but it looks to be a great news haha!

lol. no worries. I was saying that I have been trying to figure this out for 1 hour, but you are right it is great news now with your help! Thank you again.

1 Like

You’re welcome @meyoung7, you are free of this challenge now! Good luck with the next ones :slight_smile:

1 Like

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