Tell us what’s happening:
I can’t work out why my alt is showing red, what am I doing wrong?
Your code so far
<h2>CatPhotoApp</h2>
<main>
<imgsrc='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 (iPhone; CPU iPhone OS 14_0_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Mobile/15E148 Safari/604.1.
I think you did not understand my answer. You need to add > symbol at the end of the img element. That means, you need to add > after the value of alt and not after img.
Also, use double quotes instead of single quotes.
The source url of the cat photo starts with https and not http.
<img> src=‘http://bit.ly/fcc-relaxing-cat’ alt=‘relaxing cat’>
Like this? If so I tried this still no luck!
So confused as thought this would be right! Really Appreciate all your help thank you