I can’t see what’s wrong with my answer here but the ‘Run test’ keep showing ″Your alt attribute should not be empty″.
But as can be seen above, my alt attribute is not empty. So, where’s the error coming from?
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=RelaxingCat>
<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; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Safari/537.36
But when i try that (″ ″) the image disappears leaving only an icon of the image and the alt attribute wrapped in (″ ″) as shown in this screenshot below:
And the ‘Run Test Bot’ will also show an additional error:
″Your image should have a src attribute that points to the image″.
As in the screenshot below
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.