How do I make my alt attribute is empty

Tell us what’s happening:
Describe your issue in detail here.
I’m stuck on the cat photo. I did everything right from <img src=https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg but when I want to make alt= relaxing cat, it tells me that my images alt tribute is empty. how to I fix this?

  **Your code so far**

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

Challenge: Add Images to Your Website

Link to the challenge:

Revisit the examples in the lesson paying attention to what is in quotes

1 Like

I tried something else but to no avail. I did everything except alt= for som reason its still says that its empty. please help…

Please post all your current code so we can see it.

When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).


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

  1. That’s only one line from your code. It is not the full code
  2. As I said, revisit the lesson and see where to use quotes with attributes (both src and alt)
2 Likes

im not sure what you are saying, quotes like relaxing cat?

My apologies…quotation marks (" ")

1 Like

yeeeeeeee it worked! thx so much.

1 Like