+ 1

(Un)necessary Alt tag

The course says, the alt ta is necessary for inputting an image, but my websites work without it, why?

21st Aug 2017, 3:05 PM
Rohnek Kdosi
5 ответов
+ 8
alt attribute is required for <img> tags if you want your markup to validate. Background images and bullets are just cosmetic, they don't need an alternate representation as they are not part of the content.
21st Aug 2017, 3:16 PM
P R
P R - avatar
+ 6
text inside alt tag is displayed when the image is not supported by the browser
21st Aug 2017, 3:14 PM
P R
P R - avatar
+ 1
so, it's not necessary
21st Aug 2017, 3:15 PM
Rohnek Kdosi
+ 1
then they should say so in the course
21st Aug 2017, 3:17 PM
Rohnek Kdosi
+ 1
alt tag is intended for blind people to be read what is in the pic....it also helps with seo rankings
23rd Aug 2017, 8:14 AM
Sam Tezel
Sam Tezel - avatar