Add alt text to the Choosing a Programming Tool page. #327
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add alt text to images and indent ..image directives.
The alt text for images on this page showed the file name.
e.g. <img alt="../../../_images/BlocksPicture11.jpg" src="../../../_images/BlocksPicture11.jpg">
Note: This pages uses ..image instead of the usual ..figure. Each image is preceded by a paragraph about the programming tool so the image is in context. No caption is really required, but we should provide screen reader text in the alt tag.
While testing that in a screen reader I noticed that each numbered list was a list of one item. That's because the ..image directive is not indented so it was ending the list. Then the next numbered item started a new ordered list.
The screen reader was saying things like "A list of one item", then reading number 2 for the 2nd item.
Now it says a list of three items and then reads them in order.
The images properly say the alt text when encountered by the screen reader.
Here's what the RST source looks like now with the alt text and ..image indented.
Which generates better looking HTML with a proper ordered list and alt text for the images.