+ 1
Image not found.
what code will be to show the pic is not found.
2 ответов
+ 16
<img src=… alt=NotFound onerror=alert("NotFound!")>
+ 7
Use alt attribute of image to indicate that image is not found or broken due to speed issue or something like that.
eg.
<img src="picture.jpg" alt="myPicture">