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 null ("") if WIDTH and HEIGHT attribute values are both greater than 25.
| Question | Is this a decorative image that requires null Alt text? |
|---|---|
| PASS | Image is decorative (null Alt text is OK). |
| FAIL | Image is not decorative (null Alt text is not OK). |
img element and view its alt attribute value.alt attribute value is an empty string ("") then proceed to the next step.alt attribute value contains text if the image is non-decorative.alt attribute value is an empty string ("") then add an appropriate alt attribute value.<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html lang="en"> <head> <title>OAC Testfile - Check #4 - Negative</title> </head> <body> <p>We would like to adopt another pet and are looking for one that is similar to what's shown in the picture.</p> <img src="rex.jpg" alt="large brown and black cat named Rex" width="150" height="105"/> </body> </html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html lang="en"> <head> <title>OAC Testfile - Check #4 - Positive</title> </head> <body> <p>We would like to adopt another pet and are looking for one that is similar to what's shown in the picture.</p> <img src="rex.jpg" alt="" width="150" height="105"/> </body> </html>