Gallery of Images: Happy People from Our Company Event
Developer: Put explicit user instructions here, such as: "click a thumbnail to download images" or "click an image thumbnail to view image options."
developer notes
- by using the UL/LI html structure, these items have been grouped properly. If another HTML structure was used, additional roles would need to be added.
- I have not used the 'title' attribute here, because 'title' has spotty support with assistive technology(AT).
-
While testing with NVDA + Firefox on Windows, I see that two different methods seem to mostly convey the same information:
-
Method One:
-
Add
aria-labelon the link, leaving the image alt blank and addingrole="presentation"to the img element. -
Screenshot of how this reads out on NVDA + Firefox (Windows) for the first image:
-
Add
-
Method Two:
- Add all of the information to the image's alt tag.
-
Screenshot of this method on the second image:
-
Method One:
-
This example assumes the following:
- The aria-label/alt text will be dynamically generated and added with some sort of concatenated string.
- the images will have been batch processed for consistency