Level 1
1.1 Provide a text equivalent for every non-text element.
A - text equivalents
Requirement 3: Text Equivalents
Priority 1
1.1 Provide a text equivalent for every non-text element.
Priority 1
1.1 Provide a text equivalent for every non-text element.
Priority 1
1.1 Provide a text equivalent for every non-text element.
img element cannot have alt attribute value of whitespace if WIDTH and HEIGHT attribute values are both greater than 25.
| Question | Is this a decorative image that requires spacer Alt text? |
|---|---|
| PASS | Image is decorative (spacer Alt text is OK). |
| FAIL | Image is not decorative (spacer Alt text is not OK). |
img element that has width and height attribute values that are both greater than 25.alt attribute value for the img element.alt attribute value is expected to contain one or more characters that are not whitespace characters.alt attribute value is whitespace then either add an appropriate alt attribute value or confirm that current empty value is appropriate for the associated image.img element has whitespace Alt text but width and height are less than 25.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en"> <head> <title>OAC Testfile - Check #5 - Negative</title> </head> <body> <img src="spacer.gif" alt=" " width="5" height="5"/> </body> </html>
img element has whitespace Alt text and width and height are both greater than 25.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en"> <head> <title>OAC Testfile - Check #5 - Positive</title> </head> <body> <img src="rex.jpg" alt=" " width="150" height="105"/> </body> </html>