When I type in the code below the cat picture is missing. Only when I take the quotes away from the img element does it appear. Also, it keeps saying “Your image element must have an alt attribute” despite being inputted exactly as the lesson requires and as noted below. Am I doing something wrong ?
Your code so far
<img src=“https://bit.ly/fcc-relaxing-cat”
alt=“Cat falling asleep”>
<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 (iPad; CPU OS 12_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1 Mobile/15E148 Safari/604.1.
@Tonyb1515, which lesson is this? On a side note, if you click the ‘ask for help’ button it will append that info and will make it easier for anyone wanting to help.
So, from what I can see that you’ve given us, those are not the correct type of quotes. What are you using to do the lessons?
What I’m saying is that this; <img src=“https://bit.ly/fcc-relaxing-cat” alt=“Cat falling asleep”>
is not the same as this; <img src="https://bit.ly/fcc-relaxing-cat" alt="Cat falling asleep">
It’s the Basic HTML/HTML5 Course. The lesson is “Add Images to your website”. As for the quotation marks, that’s the only type my keyboard has. (I’m using a IPad Bluetooth now but my laptop only has only one type of quote as well) Is there a special character I need ? Also, why is it posting the image with no quotes at all ? I’m real new to this so my apologies if I’m confusing the issue. Thanks for your help !