0

Why does alt='''' should be written to print an image

15th Nov 2016, 6:50 PM
rany
rany - avatar
2 Respostas
+ 2
alt means "alternate" . For some reason browser maynot be able to load the image, or the source (src) may pointing to invalid addresses . In that cases it will be helpfull for the end user to give an alternate text in the place of image.
15th Nov 2016, 6:53 PM
NIKHIL CM
NIKHIL CM - avatar
+ 1
it's not that alt is used to print image alt is an attribute which is the alternative description in case image fails to load
15th Nov 2016, 6:52 PM
Sandeep Chatterjee