Please help, what is wrong? It keeps saying that my image element needs to have an alt attribute.
Your code so far
<img src=“https://bit.ly/fcc-relaxing-cat“ alt=“Shows a cat relaxing.”/>
<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 11_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1.
I believe your quotation marks are facing the wrong way. The opening quotation mark should be facing in, the closing one facing in. (Both quotation marks should be facing in.)
Yes, I am using an IPAD Pro and often have trouble with this. I wasn’t sure if it that was the problem. I will try to correct it, but if I can’t I will have to pull out the old laptop. It is quite a clunker but it doesn’t gives me problems with that. Thank you for your input.
I believe the slash does not matter, as the image tag is a self closing tag, similar to the br tag. The br tag can be written like <br> or <br/> and both work, so I assume it’s the same with the image tag.