0
<img src="tree.jpg" alt=""/>. What do you mean by alt='''' here?
5 ответов
+ 6
In this case it just prevents from displaying a potentially unwanted "no image" alert.
+ 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! :)
+ 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.
0
@Hassie. Do we have to use this same attribute alt='''' in case of every image without any modification in this attribute?
0
@Jar hey it's an optional attribute. You don't need to use it.