0

<img src="tree.jpg" alt=""/>. What do you mean by alt='''' here?

27th Mar 2017, 11:27 AM
Jar Vis
Jar Vis - avatar
5 Answers
+ 6
In this case it just prevents from displaying a potentially unwanted "no image" alert.
27th Mar 2017, 11:32 AM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 6
I beg to differ. The alt attribute is not to be neglected. It is used by search engines and AI to recognize images and learn recognition, respectively. Always remember to SEO-wise your images! :)
27th Mar 2017, 4:25 PM
Kuba SiekierzyƄski
Kuba SiekierzyƄski - avatar
+ 1
Alt is used if the image is not displayed. Let's say the image fails to display, the alt text is used instead to describe the image.
27th Mar 2017, 11:29 AM
Hassie
Hassie - avatar
0
@Hassie. Do we have to use this same attribute alt='''' in case of every image without any modification in this attribute?
27th Mar 2017, 11:33 AM
Jar Vis
Jar Vis - avatar
0
@Jar hey it's an optional attribute. You don't need to use it.
27th Mar 2017, 3:38 PM
Hassie
Hassie - avatar