DEV Community

Sean Dylan Patterson
Sean Dylan Patterson

Posted on

alt="text" Attribute language

I'm interested in the alt="text" attribute, specifically the language used within the text area.

I understand that in many ways this is used as a backup redundancy in case an image is not displayed correctly, but would it not add value to users using screen readers for example to put more descriptive, emotive language in there?

In the basic explanation of the attribute on w3schools website they give the following:

I'm just wondering if something structured and approached from this perspective wouldn't add value overall, thoughts?

I'd love to hear what everyone else thinks, I know it's not exactly the hot topic 😁

Admittedly it does look terrible when the image doesn't show and instead you're presented with a wall of text

alt="Computer"
alt="Phone"
alt="Cup of coffee"

Would it cause any reduction in satisfaction for any other user by implementing something more like this for example:

alt="A MacBook Pro laptop computer with the lid open on the desktop"
alt="An iPhone 6 or 6s Smartphone on the desktop"
alt="A delicious looking Cup of warm espresso coffee in a small single serving"

(As an aside... This is why coding will never catch on, en masse, it's way too involved just to comment!)

Top comments (0)