Why does it keep saying my alt attribute is empty?

Tell us what’s happening:
It’s basically saying my image element’s alt attribute is empty but I tried and couldn’t get it right.

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"> alt="Upside down Kittie">

<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 (X11; CrOS x86_64 14526.69.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.82 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

You closed your image element before adding the alt attribute.

1 Like

wait so how do I add the attribute?

You add the attribute before the closing >

2 Likes

THANK YOU so much for the help

1 Like