Skip to content Skip to sidebar Skip to footer

Why Would The Supplied Alt Text Not Display When An Image Fails To Load?

I attempted to add update 10 to this post: Why does my img error function fail?, but I would have surpassed the maximum post length, and so have to start a new question. The 'obvio

Solution 1:

There is another likely explanation.

Often other servers will provide a different image rather than the desired image when you try to load their image onto your web page on your own server. This way there is an image there, so no error is detected. But you still don't see the image that you wanted to see.

This is definitely a possible explanation of why the plug-in that I suggested (and someone else later) would not work. The plug-in cannot tell what the image was supposed to have been, so it is unable to detect whether the image you wanted to see is there, or just a blank image provided by the server instead as a way of blocking you from using their images at your site.

You can find out for yourself whether this explanation is applicable for any of the images which mysteriously don't seem to be detected as having an "error" and yet do not show up.

Simply right-click on the image and use the options your browser provides to inspect the image / examine its URL or other properties. If there is an image there but yet no image shows, then the server is replacing the real image dynamically with an empty image when you try to cross-link to it and load their image within your site.

Solution 2:

To try to answer why alt text is not displayed...

Some browsers use alt to display in place of a broken image while others use the title. See: Why doesn't alt text show up in image

You can also read about the difference between alt and title attributes here: alt and title tag differences

Post a Comment for "Why Would The Supplied Alt Text Not Display When An Image Fails To Load?"