Except where otherwise specified, the alt
attribute depend on what the image is intended to represent, as described in the following sections.
The most general rule to consider when writing alternative text is the following: the intent is that replacing every image with the text of its alt
attribute does not change the meaning of the page.
So, in general, alternative text can be written by considering what one would have written had one not been able to include the image.