Unable to add image

It is saying i should have an src that points to the kitten image and that the alt should not be empty - but I cannot work out what is wrong.

Your code so far


<h2>CatPhotoApp</h2>
<main>
<img 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 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

You’re using the ’ wrong. Strings are defined with " or ’ at the start or end. So you’re using twice of the same before and after. Basically, you’re starting and ending a string before and after.

You have this ’ ’ hello ’ ', you only use one of them before and after. What you might be confused it is because " looks exactly like 2 of ’ . But they are not the same thing, " counts as one ’ . The " is a different key than ', not the same pasted twice. If you’re using QWERTY then " is when you press Shift + 2 and ’ is when you press the same key as the question mark (?)

So, they’re two different things that look exactly the same if one is pasted twice. Confusing, I know, they’re different keys. Look for " on your keyboard and you should understand better

1 Like

I think you might be using the wrong quotations marks? There is a difference between ’ ’ and "

Thank you!! it worked

Thank You! it works now

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