The logic is correct

Tell us what’s happening:
the program says the alt should not be empty , can anyone tell me what wrong with this alt although isa not empty has the system has said.

Your code so far





<h2>CatPhotoApp</h2>
<main>

<image src="https://bit.ly/fcc-relaxing-cat" 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 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.125 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

Hi and welcome to the forum.

Your image tag does not match the syntax of the example:

<img src="https://www.your-image-source.com/your-image.jpg" alt="Author standing on a beach with two thumbs up.">

thanks for quick response by the way the syntax are the same but is not working , i’ve changed to original example still not working , whats could be the possible error, please let me know.

i found the mistake was : “i shouldn’t write the image but img”

1 Like

Yep, and you have a stray / at the end of the element.

yeah, I had it, the only thing i’ve changed was the image to img, so it worked .