Pls i cant see anything wrong with my code ols help

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>
<img src="http:bit.ly/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/81.0.4044.113 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

Hi @ijedinmalucky.

Inside your alt attribute you should insert as description of the image literally.
Like:

<img src="http:bit.ly/fcc-relaxing-cat" alt="A cute cat photo"/>

Use the alt to describe the image. If the image doesn’t load to the user the ALT attribute will show up… So you need describe the image properly.

i did that and the image appear but there are still telling me to add a src attrice which is aready there

Remove the “/” at the end as it should not be there

i decided to skip it since i got the pic already but am still confuse why they didn’t pass me

There still telling me to add a src attribute which is already there

Should I skip it? Cus have tried all I can even using the video tutorial and it was same as mine but it’s still saying wrong

@ijedinmalucky, You’re using the wrong protocol. http and https are different. Which are you asked to use?

Secondly, you’re missing the backslashes in the URL. Again, look carefully at what you’re asked to use.

Look, my code worked there:

<h2>CatPhotoApp</h2>
<main>

  <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute 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>

Check if have any difference between yours and my one;

replace Image url with this , the problem is your link u didn’t add the double slash //
or just paste this code and test

<h2>CatPhotoApp</h2>
<main>
<img src="http://bit.ly/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>

thank u very much the fault is that was using http instead of https thank u very much

1 Like