What does this refers to?? While removing those alt tags the image size got reduced...what the use of this tag??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does this refers to?? While removing those alt tags the image size got reduced...what the use of this tag???

https://code.sololearn.com/WXlij958L0V0/?ref=app

19th Jul 2017, 12:42 PM
sandhiya vasu
sandhiya vasu - avatar
4 Answers
+ 1
thanks for ur reply and for ur answer...
19th Jul 2017, 1:09 PM
sandhiya vasu
sandhiya vasu - avatar
0
Firstly, alt is called an attribute, not a tag. It is used for the possibility that your browser can't find the image--the value of alt is displayed instead as text.
19th Jul 2017, 12:53 PM
James
James - avatar
0
does this alt attribute is necessary?
19th Jul 2017, 12:58 PM
sandhiya vasu
sandhiya vasu - avatar
0
Whenever I code things using Adobe Dreamweaver it tells me that I must include the alt attribute for img tags, but my code always works without it. So it's not necessary, but somehow it must be more proper to use it.
19th Jul 2017, 1:03 PM
James
James - avatar