Needed Help for Adding Images

Tell us what’s happening:

It says I cant create the picture

Your code so far

<alt=“a relaxing cat”/>


<img src="https://s3.amazonaws.com/freecodecamp/relaxing-cat.jpg"/>  
<alt="a relaxing cat"/>

Your browser information:

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

Challenge: Add Images to Your Website

Link to the challenge:

1 Like

Hey @morillox08!

The alt attribute should be formatted like this

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

Hi @morillox08

There is a mistake in the alt attribute which you used for adding images into your CatPhotoApp. You need not add a separate tag for adding the alt text.
Instead, you add it in the img tag itself as an attribute. Did you notice that after your image the code you used was seen as text?
That’s because there is no tag named <alt> and it is only an attribute.
Just add it to the img take like you add the src attribute with the suitable text inside strings.

Then go smash the run the test button!!!

Hope I was able to help you :blush:

A lot of people seem to have trouble with this challenge.

Hey @morillox08, try this:

<img src="https://s3.amazonaws.com/freecodecamp/relaxing-cat.jpg" alt="a relaxing cat">

a relaxing cat

I thank all of you programmers for putting your time away to help me with this assignment I wish you all a good day.

1 Like