Adding image to a website

Tell us what’s happening:
hey guys need some help stuck on the add image. when i run the test is telling me that my “alt attribute should not be empty”. don’t know what am doing wrong any help

Your code so far


<img src=https://bit.ly/fcc-relaxing-cat img alt= relaxing cat.>
<h2>CatPhotoApp</h2>
<main>


<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 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0.

Challenge: Add Images to Your Website

Link to the challenge:

Hi @polanco0823 !

Welcome to the forum!

There are a couple of syntax issues with your code.

I would suggest resetting the lesson and taking a look at the example img tag provided for you in the lesson.

Example:

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">

You will notice that both the src and alt attributes have quotes whereas your code does not.

You will also notice that there is not space after alt in the example.

This extra img word should not be in your code.

If you follow the structure of the example, then the test will pass.

Hope that makes sense.

1 Like