+ 2

Wat is the function of the "alt" when adding images while coding

21st Jan 2018, 10:37 PM
Adelagun Emmanuel
Adelagun Emmanuel - avatar
3 Réponses
+ 4
an alternative in case your image doesn't load properly
22nd Jan 2018, 2:00 AM
Mohsin Ul Islam
Mohsin Ul Islam - avatar
+ 16
it's basically an alternative text that appears when the image fails to load (for whatever reason for example the path is wrong), the text is also used for screen readers (people that can't see, use special browsers with build in screen readers, those readers obviously can't read an image but the can read the text that's why the text should describe the picture really well)
21st Jan 2018, 10:43 PM
Kamil
Kamil - avatar
+ 2
thanks @kamil
21st Jan 2018, 10:51 PM
Adelagun Emmanuel
Adelagun Emmanuel - avatar