WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Alt text for images


From: Philip Kiff
Date: Sep 21, 2020 5:40PM

On 2020-09-21 18:51, Jeremy Echols wrote:
> It's worth noting that many CMSes let you reuse the same image in different contexts, but they also reuse the alt attribute. We run Drupal for pretty a huge number of our pages, and this is a constant problem. A general-purpose "stock"-like photo of a student can be used for so many purposes, and when the CMS tries to force a single alt text on you, it becomes a huge pain.

Your note about problems with Drupal tweaked my memory and curiosity.

I think I recall reading some lengthy discussions years ago about how
Drupal would handle the issue of assigning different alternative text
attributes to the same image in different contexts, and I thought that
the community had come up with solutions for this? This is way back when
there were multiple, significantly different versions of the media
library module for Drupal 7.x floating around.

I just assumed that current versions of Drupal (8.x and 9.x) would have
something built in that dealt with this?

This page about embedding media with CK Editor, seems to allow a default
alternative text to be passed on if configured to do so, but then allows
the CK Editor to override it as desired:


Philip Kiff
D4K Communications