The same image could be used in different places on a website, but this doesn't mean that the image has always the same purpose. Hence the image location could change their meaning altering the content of the alt
attribute.
For example the logo (image) of a social network could be used on the page header as link to the home page, so in this case the alt
attribute could be "Home page".
The same image could be found for decorative purposes in the main body or the footer of the web page. In these situations the image could be ignored by Assistive Technology so null alt text should be used ( alt=""
, meaning that the image can be safely ignored).
Finally the website could use the same logo to encourage users to join or follow them in their own social network's account, in this example the alt
attribute content could be "Follow us in Our Social Network".
As can be seen, the image's context change their meaning.