Image for the cat photo app

i am struggling with the alt for the cat photo app nothing is working for it. I have the image done and everything else done i just can’t get the alt text to work can anyone help please.

my code so far

<h2>CatPhotoApp</h2>
<main> <img src=https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg alt=''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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

It looks like you didn’t use quotation marks around your alt, your alt should looks like this:
alt=“Cute Cat”

You also need to put your link within quotation marks also for it to work
For example:
src=“link”

3 Likes

wrap your src and alt link with double quotes like this src=“https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg
alt=“cute cat”
This should be your new code:

<h2>CatPhotoApp</h2>
<main> <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="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>
2 Likes

Hello there!

I allow myself to add a little something!
Don’t forget to use double quotes and not 2 simple quotes, it should be this:

" "

Not this

'' ''

By the way, welcome to the freeCodeCamp Forum, I see it’s your first post! Hopefully this will help you become an awesome developer :slight_smile:

3 Likes

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