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)
title attribute for all img elements is absent or the empty string ("") if the image is decorative.
img has title attribute and image may be decorative.
| Question | Is this image decorative? |
|---|---|
| PASS | Image is not decorative. |
| FAIL | Image is decorative. |
img element and check for a title attribute.title attribute for all img elements is absent or the empty string ("") if the image is decorative.title attribute is an empty string ("").
<?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>ATRC Testfile - Check #239.2 - Negative</title> </head> <body> <p>My poem requires a big space<img src="10pttab.gif" title="" width="5" height="5"/>here.</p> </body> </html>
title attribute is not an empty string ("").
<?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>ATRC Testfile - Check #239.1 - Positive</title> </head> <body> <p>My poem requires a big space<img src="10pttab.gif" title="big space" width="5" height="5"/>here.</p> </body> </html>