I am having trouble because my alt attribute is empty

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

  **Your code so far**

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

<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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

It looks like you didn’t finish creating your post. Can you please edit it?

I cannot put an alt attribute on my code

What is preventing you from adding the attribute? It looks like you’ve added a src attribute, but you forgot to put quotes around the value. An alt attribute is added the same way.


I forgot to put the quotes around the value so that is why the code was incorrect

1 Like

:+1: That’ll do it. Do you have any other questions about this exercise?

1 Like

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