Why audio and video can like this but image cannot? (HTML5) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why audio and video can like this but image cannot? (HTML5)

<audio src…>text or anything that will show up if audio cannot be played</audio> <video src…>text or anything that will show up if video cannot be played</video> Why tf image cannot <img src…>text or anything that will show up if audio cannot be played</img> but must use alt…? Thanks in advance for helping me

25th Nov 2020, 2:38 PM
Jonas
Jonas - avatar
3 Answers
+ 2
img is lineelement and didn't have end tag <img src="link" alt="word that will appear if the image didn't appear to help user arrive to it by searching on google ">
25th Nov 2020, 2:54 PM
Muhammad Galhoum
Muhammad Galhoum - avatar
0
Thank you. It is weird that audio and video are the same but they do image like that, it will be so perfect if everything is the same🤣
25th Nov 2020, 3:13 PM
Jonas
Jonas - avatar
0
ALT text refers to invisible description of images which are read aloud to blind users on a screen reader. Adding ALT text allows authors to include images, but still provide the content in an alternative text based format.
26th Jan 2021, 4:12 AM
Chris Coder
Chris Coder - avatar