How to write alt text for code and terminal screenshots, meet WCAG contrast guidelines, and decide when a code block beats an image.