I'm having difficulties adding the cat photo challenge, the alt is not working

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<img src=https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg>
<alt>cute cat</alt>
<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_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

alt is an <img /> tag attribute, just like src. So you need to write it inside <img /> tag.

Like this:

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="Write alt here">

Don’t forget to write attribute value inside a quotation

1 Like

alt=“A cute orange cat lying on its back.” this is what the alt tag should say.

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