My img doesnt work i did everything they said but the picture wont appear on my website?

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>

<img src="https://bit.il/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>
</main>

Your browser information:

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

Challenge: Add Images to Your Website

Link to the challenge:

You didn’t close your tag.

thank you for answering . I tried but it didn’t work it says I didnt put an src even though I did

What is your corrected code with the img tag closed?

what do you mean by corrected code im sorry im a beginner

You said that you

when @ArielLeslie told you that you need to close your tag. So what does your updated code where you closed the tag look like?

It is bit.ly not bit.il

1 Like

<img src="https://bit.1y/fcc-relaxing-cat" alt="Relaxing cat"/>

ya i corrected it but it still didnt work

You need to use the </> button or put three backticks ``` on new lines before and after your code so we can see it.

It’s an l (the letter l) not a 1 (the number 1).

bit.ly


I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

You didn’t close the tag the same way the example in the challenge showed.

<img src="https://www.your-image-source.com/your-image.jpg">

capital i or small
cause see
bit.Iy
bit.iy

I would recommend copying and pasting the url

https://bit.ly/fcc-relaxing-cat

ya but they added an alt
so i addded an alt then closed the tag

You didn’t close the tag the same way the example did.

i tried it doesn’t work

What is your current code?

i just tried it nthing happened

What is your current code?