My code is not working plz help me

Tell us what’s happening:

   **Your code so far**

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

<h2>CatPhotoApp</h2>
<main>

<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/89.0.4389.114 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

You are trying to access an image from a redirect link (bit.ly)

Try linking directly to an image e.g https://your-site.com/your-image.jpg

hello @puramrajdeep ,
As I have checked the link you provided. Everything works just fine.
Img link works just fine as well.
So there’s nothing wrong.
–>You just need to write your code as required by the challenge.<–
And if I misunderstand your problem, please let me know.

1 Like

alt =“a business cat wearing a necktie.”>

hi @musapeter156
the challenge just asks for an “alt” attribute with a value in it. It didn’t say that alt’s value must be “a business cat wearing a necktie.”

try to copy and paste the image link not type it

i just checked, it only works when you copy and paste the link

Remove the “!- -” at the bottom of the code

hi @puramrajdeep,
in your code, after the “alt” attribute of your img tag should be an equal sign.

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

That’s only the problem in your code.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.