-
Improvement
-
Resolution: Fixed
-
Minor
-
4.2, 5.0
-
MOODLE_402_STABLE, MOODLE_500_STABLE
-
MOODLE_500_STABLE
-
MDL-78453-main -
-
-
2
-
Team Hedgehog 2024 Sprint 3.3, Team Hedgehog 2024 Review 4, Team Hedgehog 2024 Sprint 4.1
Image alt text has a limit of 125 characters. This is an issue when teachers need to provide alternative text for complex images such a charts and other learning material.
Whilst there are valid reasons to keep the alt text short, users are left with adding a description (or link to a description) as their only option.
This issue was initially described in MDL-77044 for the Atto plugin.
Based on research and in consultation with our own Accessibility team members, there isn't a defined max for alt text in WCAG or others. However we shouldn't make it too open ended.
Doing some initial research, in English the average length of a paragrah is 100-150 words, with the average word length being 5 characters. So this give us a range of 500-750 characters for a single paragraph. Accounting for differences in languages, 750 characters feels like a good upper limit. For reference the below lipsum is 750 chars:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum rutrum varius nulla, ut consequat leo gravida et. Ut ultricies diam ac lobortis posuere. Duis tristique laoreet leo, quis facilisis est auctor a. Vivamus arcu enim, rutrum id ante vel, viverra maximus metus. Fusce rutrum enim ante, vitae lacinia nunc vulputate eu. Aliquam quis ultricies tortor. Suspendisse potenti. Sed bibendum vitae neque in imperdiet. Mauris eget pretium augue. Maecenas sit amet augue suscipit mauris lacinia rhoncus aliquet quis nunc. Maecenas et imperdiet nisi. Aliquam elementum bibendum nunc, nec maximus nunc pretium sed. Vivamus consectetur eget metus a fringilla. Vestibulum nec odio massa. Donec vestibulum malesuada turpis ut molestie. Integer dolor.