G73/G74 Long Description Notice

HTML_CodeSniffer Image

Explanation

According to Success Criterion 1.1.1 (Non-Text Content), all non-text content should contain at least a short text alternative, such as through alt text. However, if the short text alternative is not enough to fully describe the non-text content, a long description should be provided. An example may be the contents of a graph: the alt text may say "Graph of sales by quarter" but it does not describe the points of the graph.

HTML_CodeSniffer will emit notices for images to ensure that a long alternative is available. The longdesc attribute should not be used, as this is outdated and obsolete in HTML5. Instead, a long alternative should be provided in the body text immediately surrounding the element, or through a link to another page.

Expected Notices

Relevant Success Criteria

Relevant Techniques