Alt Attribute is acting up

Tell us what’s happening:
Describe your issue in detail here.
I have provided the content for the alt attribute of the ing element/tag, but when I click RUN, it doesn’t get approved. See below. Please what am I not doing right?

Your code so far


<h2>CatPhotoApp</h2>
<main>  
<img src=https://www.bit.ly/fcc-relaxing-cat alt=A relaxing kitten>
<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 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Mobile/15E148 Safari/604.1

Challenge: Add Images to Your Website

Link to the challenge:

Hi @mcjosef !

Welcome to the forum!

It is not running because you are missing the quotes for both the src and alt attributes.

Take a close look at the FCC example again and you will notice that the src and alt attributes have quotes.

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

Hope that helps!

Tell us what’s happening:
Describe your issue in detail here.

Hello,

I don’t seem to know what I am doing wrong on the alt attribute. After adding words to ensure it is not empty, I still don’t get a pass, even when the image is displayed.

Kindly assist to provide guidance.

Thanx.

Your code so far


<h2>CatPhotoApp</h2>
<main>  
<img src=https://www.bit.ly/fcc-relaxing-cat alt=A relaxing kitten>
<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 (iPhone; CPU iPhone OS 14_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.1 Mobile/15E148 Safari/604.1

Challenge: Add Images to Your Website

Link to the challenge:

You still have the same issue.

There are no quotes here

or here

Does that make sense?

Do you see how the FCC example has quotes here

and your answer does not.

Hello Thanx for the feedback on my question as well as my multiple submissions. Apologise!

I have now inserted the quotation Mark’s appropriately and that doesn’t seem to help.

Any thoughts?

Thanx.

Can I see your updated code?

Hi Jessica,

I have resolved it now. I have had to abandon my phone and log on to a computer to get it right, as the quotation marks on the phone were not being recognized.

Thanx for your help and apologies again for my earlier multiple submissions of this request.

Regards.

1 Like

I am glad you were able to solve the challenge. :grinning:


For Mobile devices, the default keyboard does not always play well with the freeCodeCamp editor. I recommend you read the [article on using a mobile device](https://www.freecodecamp.org/news/freecodecamp-mobile/) to view some tips - most importantly, check out the coding keyboards listed as they interface with the editor well.

Awesome. You are a life saver.

Thank you.

1 Like

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