You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Image Preview for HTML Images] What happens to alt text? #1408
That just about gives me a sense of the structure of the image, but not much more.
Using a massive 3KB, get's this which is better but still hardly legible.
Are either of those better than alt text?
I can see why purely decorative images would benefit from a preview image. But for most other images, I think the user experience is likely to be worse.
Could Microsoft please fund a couple of user researchers to test this idea with real users? Otherwise it's just developers talking among themselves - which might not be the most representative sample 😆
Reacted by Chris Haas, Tai Withers, James Frost, superuser-does, Tristan Miller, Paweł Grzybek, Eric N. Brown, QING CHARLES and Soumya
I agree that in some cases visible alt text may be more useful than a low-quality preview, especially for informational images where a blurry preview communicates very little. In other cases, such as photos or decorative images, a preview may give users more useful visual context while the main image loads.
Developers choose whether to provide a preview. If they do, the preview is shown instead of visible alt text while the image loads. The alt attribute is still required and continues to provide the image’s accessible description.
I expect user research would show that neither option is always better: visible alt text will be preferable for some images and low-resolution previews for others. The research could help us provide better guidance about when to use each approach.
Activity
QINGCHARLES commentedon Sep 27, 2026
Well, it's optional, not mandatory, so you can choose for your own use case, right?
edent commentedon Sep 27, 2026
No. If I am on someone else's website then I don't get to choose if they've used a preview image.
In the example above, I was in BlueSky. I have no say in how they write their HTML.
ogerchikov commentedon Oct 6, 2026
I agree that in some cases visible alt text may be more useful than a low-quality preview, especially for informational images where a blurry preview communicates very little. In other cases, such as photos or decorative images, a preview may give users more useful visual context while the main image loads.
Developers choose whether to provide a preview. If they do, the preview is shown instead of visible alt text while the image loads. The
altattribute is still required and continues to provide the image’s accessible description.I expect user research would show that neither option is always better: visible alt text will be preferable for some images and low-resolution previews for others. The research could help us provide better guidance about when to use each approach.
jakearchibald commentedon Oct 6, 2026
fwiw Gecko is the only engine that shows alt text while an image is loading.