A - text equivalents
1.1 Text Altrernatives: Provide text alternatives for any non-text content
Success Criteria 1.1.1 Non-text Content (A)
1.1 Text Alternatives: Provide text alternatives for any non-text content
Success Criteria 1.1.1 Non-text Content (A)
1.1 Text Alternatives: Provide text alternatives for all non-text content
Success Criteria 1.1.1 Non-text Content (A)
img elements used as source anchors is not empty when there is no other text in the anchor.
img element cannot have alt attribute value of null or whitespace if the img element is contained by an A element and there is no other link text.
img element that occurs within a source a (anchor) element.a (anchor) element contains any other text.img elements used as source anchors is not empty when there is no other text in the anchor.img is contained by A element, anchor has no other text and Alt text is not empty.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>OAC Testfile - Check #7 - Negative</title> </head> <body> <p><a href="rex.html"><img src="rex.jpg" alt="a story about Rex the cat"/></a></p> </body> </html>
img is contained by A element, anchor has no other text and Alt text is empty.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>OAC Testfile - Check #7 - Positive</title> </head> <body> <p><a href="rex.html"><img src="rex.jpg" alt=""/></a></p> </body> </html>