Leaving aside the fact that the current jquery tag on SO has an Android logo as a sponsor image (?), the images alt
attribute is empty. It would be better if it said something like Sponsored by Android
or equivalent.
1 Answer
I agree that it'd be better if the alt
attribute were filled.
However, instead of the company that sponsored the tag, I'd rather see a more accurate description of the tag's logo:
alt="(Sponsored) logo for <tagName/productName>"
What company sponsored a tag should be available on the tag's information. Not hidden away somewhere in an alt
attribute. We could even add a link to the sponsor in there.
From a user's perspective, who sponsored a tag isn't that relevant. I can imagine users getting tired of their screen readers saying "Sponsored by Google" after a couple of times.
TL;DR: It could do with an (non-empty) alt
attribute, but sponsor information should be available elsewhere.
-
Wouldn't this make the
alt
attribute inconsistent with the actual content? I like your proposal about having the sponsor information available somewhere, to be clear. It's just that... it's thealt
attribute of a logo. Shouldn't that attribute then say what the logo is from, and maybe why...? Commented Dec 8, 2017 at 9:41 -
1@Justastudent: Yes, it should describe the image. So, for jQuery, it should say "logo for jQuery" or "jQuery logo", not "logo from <Sponsor>"– CerbrusCommented Dec 8, 2017 at 9:55
-
It's perfectly fine to leave the
alt
blank (or even addrole="presentation"
) if there's no information being conveyed that isn't already in text. Just saying "hey, there's a logo here" isn't really helpful to a screenreader. What the user needs to know is that it's a jquery tag and therefore they should leave the page ASAP. There's already text telling them that. What the screenreader doesn't know but seeing users can observe is the sponsorship so if anything should be added to thealt
at all it should be that.– ivarniCommented Dec 8, 2017 at 10:19 -
-
1That wouldn't tell them who the sponsor is. I kinda agree with what you said when you said "sponsor information should be available elsewhere". It's going to get noisy with a lot of sponsored tags on the page to the extent where I'd lean more towards just leaving it blank but I guess that's kind of something SO should discuss with the people who are paying for exposure in the first place. Most of the times people add text to the
alt
attribute it's not really needed. We've gotten flak for that before during UA testing by actual screenreader users.– ivarniCommented Dec 8, 2017 at 10:28 -
Adding the sponsor’s name probably won’t be useful to a screenreader user, but then again neither is having (in this case) the Android logo against the jQuery tag for sighted users. Commented Dec 8, 2017 at 12:56
-
1Yeah, that bit is a bug. meta.stackoverflow.com/q/360358/957731– ivarniCommented Dec 8, 2017 at 13:26
-
Ah, and now this starts to make a bit more sense. If a tag is only meant to be sponsored (or have an icon related to) something that matches its meaning then I can go with this answer. Commented Dec 8, 2017 at 14:18
alt
than who sponsored it. I'm not debating against tag sponsorship, not even close. I'm debating against making the tag about some company.