0

what is the function of alt=""?

<img src="https://i.pinimg.com/originals/ca/a2/65/caa2654e79e2dc88c6a3c18e1a353452.jpg" height="30%" width="50%" border="1px"alt=""/>

25th Apr 2020, 7:25 PM
Yamo
Yamo - avatar
5 Answers
+ 1
Yamo hi, Also one important thing about alt is for blind people using text to speech or screen reader. When it comes to the image the text inside the alt is read aloud for them even if the image is displayed. https://abilitynet.org.uk/news-blogs/five-golden-rules-compliant-alt-text https://accessibility.psu.edu/images/alttext/ And one other thing, I think it is useful for SEO, for referencing,when search engine collect and analyze datas within webpages. https://moz.com/learn/seo/alt-text
26th Apr 2020, 1:23 AM
EmmanueLZ.
EmmanueLZ. - avatar
+ 1
Thank you for the answer guys!
27th Apr 2020, 1:34 PM
Yamo
Yamo - avatar
0
If image doesn't displays it shows some text that you put in alt
25th Apr 2020, 7:32 PM
Abhay
Abhay - avatar
0
The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.  Eg. <img src="sun.png" alt="Sun" /> It's a optional attribute in image tag to know about image.
25th Apr 2020, 10:58 PM
! Bad Coder
! Bad Coder - avatar
0
In case the image cannot be displayed, the alt attribute specifies an alternate text that describes the image in words.
25th Apr 2020, 11:58 PM
Davron
Davron - avatar