Alt Atribute Issue

Hi guys!
I am in the img and alt attribute screen, and this is my code:
image src=“” alt=“fcc relaxing cat”
(I took off the < and > so the code would show here)
But it keeps telling me " Your image element’s alt attribute should not be empty. But its not empty T-T
Please help? It wont let me thru the next lesson, is it a glitch?

Please post your code so we can see what is happening

1 Like

image src=“” alt=“fcc relaxing cat”

That does not look like a complete or valid HTML tag. There is no image tag. Can you please post your full code?

1 Like

I took the < and > symbols so the code would show, but here let me try the whole thing:



<image src=""alt="fcc 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>


I’ve edited your post for readability. 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 (’).

Yea, that isn’t a valid tag. I would double check the spelling if img in the example tag.

Thank you so much!! I think I found the backtick too ```
Super stoked about this website and this forum.
Thanks a million! :))

1 Like

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