I couldn't get through uploading an image 😓

Tell us what’s happening:

Your code so far


<img src:http//bit.ly/fcc-relaxing-cat alt: relaxing cat>
<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>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; SM-A505F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.92 Mobile Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

Am only new to coding and 1day old :slightly_smiling_face:

Please tell us what is wrong. Explain where you are confused or having trouble? What is not working as expected? What are the different ways that you have tried to fix the problem already.

1 Like

Hello @Fischerdils99,
I understand from your post title what you are having trouble with, but as @ArielLeslie mentioned, please provide more information about how you have tried to solve the problem.

In the lesson, look at how the tag is formed. Remember, the syntax for <img> is <img src=" ">. Yours is different.

1 Like

It’s src= not src: semicolons are used in CSS not so much in HTML.
Also, remember every tag needs a closing tag!

1 Like

Am sorry I’m only a day old I’ll give it a try now and do I include this src=" ">

Please help me out that’s what I have been doing

instead of creating a new one, fix the img at line 5 (delete the one at line 9)

remember to always surround attribute values with quotes

1 Like


Please read my comment more carefully and include all parts of it. You did not use " " inside the tag. The alt attribute also needs =" ". Read the lesson examples carefully and try not to rush.

EDIT: Delete line 5. It is in the wrong place anyway.

1 Like

You still have the wrong img tag. Replace it with the one you fixed.

I can’t get stuck here :sob::sob:

Does the alt require an opening and closing tag

Look carefully at your img tag. You have now combined your correct and incorrect tags into a new incorrect one. I suggest resetting the challenge code and starting fresh.

Ok I’ll now start afresh

1 Like

Move line 5 to line 9. The instructions are to put the image after the <main></main> element.
The alt attribute needs to be inside the <img> tag: <img src=" " alt=" ">.

1 Like

Am sorry we are getting close, lol what did I get wrong

Your code should only have one main section. You just want to add the image above the p inside the main (where there are a couple blank lines.

1 Like

It works after the main element as well, which would be line 8 of the original code. That’s where I put the code because the instructions say to put the image after the main element, which ends on line 7. Lines 3 and 4 are inside the main element, right? I always understood that an element was opened and closed by the two tags < > < />.

The phrasing of that instruction could be improved. The intention is that you put it in the main element after the main opening tag.