DEV Community

Discussion on: Fixing dev.to accessibility [part 1] - 4 fixes that would take less than 10 minutes!

Collapse
 
hellonehha profile image
Neha Sharma

One more suggestion for alt tag I can think of is:

Use image name as an alt tag. When the user is not providing any alt tag the image name can be used (assuming they will upload a meaningful name).

However, this needs to be handle when the image has no purpose for the screen readers.

Collapse
 
grahamthedev profile image
GrahamTheDev

I will be covering alt attributes for user generated content in a future post.

Although that is a great suggestion the big problem is that people are even worse at naming images than they are at filling in alt attributes.

A second issue is that images are named my-magical-image or myMagicalImage so trying to parse the text out of an image name can be frustrating at best, impossible at the worst!

To give you a hint - I will be making alt attributes more prominent when you upload an image and an integral part of the upload image workflow, see what solutions you come up with around that and we can compare notes when I write the article 😀😀

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

@hellonehha I should have said - check out the following article and try the image uploader, not quite there but it should give you an idea of what I am thinking to address this issue.

in particular the image uploader:

image uploader with detailed instruction for alt attributes