function of alt="" (?) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

function of alt="" (?)

i saw there is an addition after src="" that alt="" following it, so what is its function?

7th Aug 2016, 8:44 AM
Hisyam Umar
Hisyam Umar - avatar
2 Answers
+ 6
alt has a string value which is used as alternate text in case image is not available or can't be loaded.
7th Aug 2016, 9:14 AM
Rachna Bhalla
Rachna Bhalla - avatar
- 1
Also it serves as text for text readers for blind people ...
4th Sep 2017, 3:12 AM
Kalo 'smi
Kalo 'smi - avatar