This question already has an answer here:
In a situation where an image is an important feature of the page, but also acts as a link to a page containing a high-res version, how should its
alt tag be populated.
In this instance it needs to fulfil dual purposes:
- A description of the image (as it is important in the context of the page)
- An indication of the link purpose / destination
How should both be fulfilled in the alt tag, and if they can't both be, which should take priority?
Note: I'm specifically interested in cases as outlined where both purposes apply. I'm not interested in situations where the image only functions as a link image to the main event.
Further Note: I am implementing a design over which I do not have final say. I am aware of basic accessibility guidelines, but as is so often the case no-one else on the project cares about making the site accessible, so I am left trying to do my best within given constraints.
So please don't answer or comment to tell me:
- That the image should be a text link instead
- That the link should contain text as well as an image