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
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 ">
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š¤£
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.