Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Attribute Alt (alternative) - displayed when the image is not loaded or the display of images is disabled (that is, only to the img tag)
Attribute Title (title) - displayed when hovering over any content, a simple hint
It seems that alt is always required, but I think the title is not required.
But the < title> tag, googling in the search , you can immediately see that it is directly related to SEO.
Keep in mind that not all users can see images. In particular, visually impaired people can use programs for voicing sites. If the image has some meaning, for example, it is a phone icon, and next to it is a fax icon. By the number you may not understand what is in front of you, a telephone or a fax, for the sighted there is a picture, and for the blind - a correctly filled alto. It should also be noted that an empty alt attribute will cause the program to read the image as Image or Image. Therefore, it must be filled in, and if the image does not carry any meaning other than visual design, the alt should be left empty, i.e. alt="".
Yes, most sites are not intended for the blind, the requests are now such that a fully understandable structure is provided only on government sites and special sites, but this does not mean that where you can not strive for this.
Title, as already written, is just a title. It may not always coincide with the viola and may not be filled at all.
title displays a tooltip, alt serves as a description of the image if images are disabled.
As far as I remember, alt is required, but it can also be an empty value.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question