Imag tag : isn't working

Tell us what’s happening:

why doesn’t this work?

Your code so far
< img source=“http://bit.ly/fcc-relaxing-cat.jpg” alt=“a cat relaxing”>


<h2>CatPhotoApp</h2>
<main>
<img source="http://bit.ly/fcc-relaxing-cat.jpg" alt="a cat relaxing">

<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/85.0.4183.83 Safari/537.36 Edg/85.0.564.44.

Challenge: Add Images to Your Website

Link to the challenge:

Your image should have a

src

attribute that points to the kitten image.

ok so i changed "source " to “src” but it did not help.???

If so, it should be right.
If not, send the code again !

relaxing-cat

this is my code , itdont work

Try changing the link from http:// to https://. Most of those links are an https and it is a common mistake if you are manually typing the link instead of copying and pasting it directly from the directions.

Nope that didn’t work

Try this url:
https://bit.ly/fcc-relaxing-cat
Note that this url doesn’t include the .jpg extension and starts with https://

The code would be

<img src="https://bit.ly/fcc-relaxing-cat" alt="a cat"/>

Thank you that helped a lot I had a F on the fcc and I took out the .jpg

Well I got the imag but it still says the src is wrong

The code you need to enter is:

<img src=“ https://bit.ly/fcc-relaxing-cat” alt=“your text description of the image here”>

This code will pass the assignment if you are still having trouble.

1 Like