The problem with adding an scr teg (the kitten image)

Tell us what’s happening:
I’ve got the picture correctly but the Tester still says “Your image should have a src attribute that points to the kitten image”

Your code so far


<h2>CatPhotoApp</h2>
<main>
<img src="https://s3.amazonaws.com/freecodecamp/relaxing-cat.jpg" alt="kitty head.">
<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/79.0.3945.130 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/add-images-to-your-website

This is not the url given in the challenge description

Now set the src attribute so that it points to this url: https://bit.ly/fcc-relaxing-cat

I’ve tried it. The URL you suggest didn’t work

show your new code then

what tests are you failing?

with the link you sended there is no any pict in the web

CatPhotoApp

kitty head.

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

i’ve failed the second test


And in the first way it looks like this. The picture is displaied! but the problem remains

that’s not the given url… that’s why it doesn’t work. If you use the given url, exactly as it is, do not add anything to it, it works

yes it is.You are right, thank you. But why shouldn’t I add the “.jpg” in the end?

1 Like

it is not part of the url, so if you add it you create an invalid url

on why that url is made exactly like that, you may want to read a bit on shortened urls - it may be interesting for you, if you are curious
particularly, this is shortened with the bitly service