Your image should have a src attribute

Tell us what’s happening:

Your image should have a src attribute that points to the kitten image. (???) I do have the src attribute that points to the kitten image, and a alt attribute with applicable text! Why doesn’t work??? Anyone?

A-relaxing-cat

Your code so far


<h2>CatPhotoApp</h2>
<main>

<img src="https://s3.amazonaws.com/freecodecamp/relaxing-cat.jpg" alt="A- 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/87.0.4280.66 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

Hi @Tarik66!

Welcome to the forum!

You are using the wrong url. The test is looking for the url that was provided for you in the challenge.

src="https://bit.ly/fcc-relaxing-cat"

It does not work! With my URL I had a nice picture of a kitten lying on it’s back, now is the image gone!!!

When I enter this URL

in Google to search for it it gives me this URL
https://s3.amazonaws.com/freecodecamp/relaxing-cat.jpg,
I mean it’s the one I use time after time and it still won’t work

I just don’t get it!!!

Just follow the instructions given to complete the challenge! They already gave you a url for cat image, use it!

I did it a few times but the only thing I reach doing that is that my image doesn’t show up anymore and when I run the test, they still keep on saying:
“Your image should have a src attribute that points to the kitten image.” !?

I mean I have already the image of the kitten laying to relax in my HTML, whenever I change the URL like you suggest, my image goes away and, if I run the test, they still tell me: Your image should have a src attribute that points at the kitten image."???

you need to use the exact url you are given in the challenge description, otherwise the tests fail

even if they point to the same image, the tests want you to follpw instructions

Hey @Tarik66!

Please post your updated code.

Do you mean this one:


or that one:

Use the URL provided in the challenge.
Or
Use the URL provided below.

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

I could not understand.

Hey @Tarik66!

Did you use the URL provided in the challenge?

Yes I did a few times already!!! But it doesn’t show the image like I do have with the other URL

This URL

doesn’t work either!

Use This URL

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

Copy paste this code

<h2>CatPhotoApp</h2>
<main>
<img src="https://bit.ly/fcc-relaxing-cat" alt="A business cat wearing a necktie."/>

  <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>

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

You can post solutions that invite discussion (like asking how the solution works, or asking about certain parts of the solution). But please don’t just post your solution for the sake of sharing it.
If you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.

All right but I didn’t understand what problem was the user facing in this simple challenge. So I posted the solution. Will keep that in mind in future.