+ 1
What is the meaning of alt=""/ in img src tag
3 ответов
+ 3
alt="" The text you put inside the quotes will be displayed in the place of the image incase it fails to load.
It is also important for the visually impared using screen readers as that text will be read out loud.
"/ " is used on self closing tags (as good practice). You can choose to leave it out.
+ 2
ALTernative text that is displayed if the image couldn't load