Skip to main content


I believe people on the #Fediverse are more likely to add alternative text to the images they post than on any other popular social media platform, that's great for #Accessibility. But it isn't the end-all-be-all of it. For example, when one of my contacts posts in German or Finnish or Farsi, I can copy the text and plug it in a translator to figure out what they meant.

However, when they share a picture including text in the same language, even if they transcribed the text in the picture in the alternative text attribute, I can't access it on mobile at all, and even on desktop I can't copy it from the default popup on mouse hover.

I tried to dabble with #CSS to reveal the alt-text attribute value using pseudo-content, but it doesn't work since we're dealing with an #HTML <img> which is an empty element by definition. Is there any other way to expose this attribute value other than just parse the text in the post body directly?

#WebDevelopment

Raroun reshared this.

@VegOS Yes, it would help, although not on mobile and not on non-Firefox browsers. I'm pretty sure there's an equivalent for Chrome and Safari but I'd rather not need an extension for this.
@utzer [Friendica] Thanks, this post is part of the reason I posted again about this topic that I explored before.
@Hypolite Petovan I am already annoyed by the alt text for some time, there is info hidden in it and it is not shown. This text should be part of the post and I will write the image description in the post now, that is more accessible anyway. But I already was shamed for not including an alt text in such a case.
@utzer [Friendica] It sounds like a classic case of following the letter but not the spirit of a rule.
@Hypolite Petovan For me Mastodon is like Orwell's Animal Farm: "Two legs bad, four legs good!" Over and over again.
@utzer [Friendica] @Hypolite Petovan I'm not sure, but I think screen readers do read the alt text. Of course it was much much easier to include a description into the post.
@VegOS Yes, screen readers read the alt-text. Aside from showing when the image doesn't load, it's almost the only system that actually reads it. The pop-up on mouse hover on desktop browser is triggered with the title attribute. It can show on mobile browser when an image is dragged from a page, but on iOS it only works in the standalone Safari app, not in any other web view that I know of.
@Hypolite Petovan The old IE needed the alt attribute for the popup/tooltip, but that's history.