+ 3

Do we have to write anything inside alt="_"

9th Nov 2016, 5:57 PM
vedansh singh
vedansh singh - avatar
7 Respuestas
+ 5
You do not have to, but you should. The alt attribute is for "alternative text". It can be displayed when the image cannot be found at the position specified in the src attribute, and it can be read aloud to blind people who browse the page. EDIT The alt attribute might also be used by search engines that crawl your website to understand better how to classify and rank your page. Although there has been some significant progress with automated image classification techniques based on machine learning (meaning that it is possible to "guess" automatically if an image represents a dog or a house, or a car, etc...) providing a short description is still the best option.
9th Nov 2016, 6:15 PM
Giulio Pellitta
Giulio Pellitta - avatar
+ 4
alt is not compulsory the value we write within them is shown if the image failed to load then.
9th Nov 2016, 6:13 PM
Sandeep Chatterjee
+ 1
not necessary but you should it helps browser to explain what content is about
10th Nov 2016, 8:33 PM
Dhruv Saxena
Dhruv Saxena - avatar
+ 1
it's alternative text in case of image is not available.
13th Nov 2016, 7:15 AM
Shekhar Bahuguna
Shekhar Bahuguna - avatar
0
not necessary
10th Nov 2016, 2:06 PM
kirubason
kirubason - avatar
0
it needed because if it fails to load the image we have another option to reach image through alt
10th Nov 2016, 4:44 PM
manohar sk
manohar sk - avatar
0
it is optional
19th Dec 2016, 12:29 PM
hafii Cheema
hafii Cheema - avatar