why is there an addition of alt in the image tag? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

why is there an addition of alt in the image tag?

18th Oct 2018, 2:49 PM
Adebowale Ayomide
Adebowale Ayomide - avatar
5 Answers
0
its a replacement text if the image doesnt load, so your web visitor at least have an idea what the image is without the image
18th Oct 2018, 2:52 PM
Taste
Taste - avatar
0
thanks
18th Oct 2018, 2:53 PM
Adebowale Ayomide
Adebowale Ayomide - avatar
0
i totally get it now, so if i was to do the tage it''ll be <img src=foot alt="foot"/> right?
18th Oct 2018, 3:02 PM
Adebowale Ayomide
Adebowale Ayomide - avatar
0
sorry i omitted .jpg
18th Oct 2018, 3:02 PM
Adebowale Ayomide
Adebowale Ayomide - avatar
0
yes, np dont forget the quotation marks :)
18th Oct 2018, 3:04 PM
Taste
Taste - avatar